By: Juan Jofre user 05 Apr 2022 at 7:01 p.m. CDT

3 Responses
Juan Jofre gravatar
Is there any documentation on how to configure authentication for an ASP.Net Core (6 or newer) web-service using a Gluu server ? I have configured a Gluu server with all options, running on a separate VM (Ubuntu 20.04 64 bits, 4GB RAM, 4 CPU units, VMWare Workstation Pro 16); the VM is fullyaccessible from the Windows host by name or IP address ( I can use a browser to login to the gluu server by name https://alpha-gluu.test or I can SSH into the VM from Windows CMD shell `ssh myuser@alpha-gluu.test`) I have tried a few OpenId examples to do it with no success. I'll be happy to add the results of this effort as a document for Gluu. Just need a few pointers to make it work. Best regards, JuanPablo Jofre

By Michael Schwartz Account Admin 05 Apr 2022 at 8:54 p.m. CDT

Michael Schwartz gravatar
You should look for an OpenID Connect client library for ASP. You will also need client credentials. You can manually create a client or use the OpenID Dynamic Client Registration API.

By Juan Jofre user 06 Apr 2022 at 7:07 p.m. CDT

Juan Jofre gravatar
@Michael.Schwartz, Yes, I have manually created 2 users in the Gluu server to test the authentication, and validated them with the login page. I created a test client on OpenId Connect. Not sure if I have the correct 'Redirect Login URI'; I'm working on validating it. On the ASP.Net side, I'm using 'Microsoft.AspNetCore.Authentication.OpenIdConnect' nugget package. I'm also reading your book 'Securing the Perimeter', but it's too high level and there's no way to access to samples you mention in Github. That's why I asked for guidance. Best regards, --JP

By Michael Schwartz Account Admin 07 Apr 2022 at 1:55 a.m. CDT

Michael Schwartz gravatar
Which link are you looking for from my book? The redirect would need to exist in your application. It should be https. Paste in the client config summary here or give a link to the screenshot.