Seeking Examples of Windows Integrated Security Modules #5282
Replies: 3 comments 2 replies
-
the first step in getting windows auth working in Oqtane is to edit your oqtane.server launchSettings.json to look like the following:
This will allow you to debug and then the httpContextAccessor will be populated with the user's credentials. This is not quite enough to get a valid Oqtane login, but it's closer. Special Note: You mist use IIS Express as your launch profile as Windows Integrated Security is not supported by Kestrel. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@markdav-is ADFS supports OIDC since 2016 - which is what Oqtane supports as well for External Login: You need to use ADFS as an IDP - by configuring your OIDC External Login settings in Oqtane. Once this is configured the user would authenticate against ADFS and then follow the standard OIDC flow in Oqtane which creates a BFF auth cookie which will be used when calling the Oqtane API, etc... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my new job, I've inherited some of line of business applications that use windows integrated security on an Intranet. In my server startup, I was able to configure authentication negotiation based on some reading I was doing about common configurations for intranets with AD SSO.
I was hoping this would magically load the HttpContext with everything Oqtane would need to populate the PageState.User properties and show the users as authenticated. I found out Kestrel doesn't do integrated security so I've configured IIS Express in the launchsettings.json as follows.
In my Module, I've attempted to access the UserName via Oqtane PageState or HttpContext without success:
These settings work fine when building a new blazor app from the default templates and I can see the username as my network login. But in Oqtane, I'm never authenticated.
It's been many years from my last intranet windows authentication adventure and I'm very rusty. If anyone has a similar configuration and trying to use Oqtane, I'd love to hear from you.
Beta Was this translation helpful? Give feedback.
All reactions