Skip to content
This repository was archived by the owner on Mar 23, 2022. It is now read-only.

Does it work with Windows / Active Directory authentication? #114

Closed
ignatandrei opened this issue Mar 30, 2016 · 1 comment
Closed

Does it work with Windows / Active Directory authentication? #114

ignatandrei opened this issue Mar 30, 2016 · 1 comment

Comments

@ignatandrei
Copy link

Does it work with Windows / Active Directory authentication?

@khalidabuhakmeh
Copy link
Contributor

Hello @ignatandrei,

In short, _yes_.

All authentication mechanisms in ASP.NET utilize Principals, including Active Directory. The source of these principals is not as important as the final representation in your code. Stuntman bypasses the source and allows you to tweak the final representation of your user.

// doesn't matter if user came from
//   Active Directory,
//   Forms,
//   OR STUNTMAN 
HttpContext.User

Note: You will have to turn off Windows auth locally during development, but that is what we currently do with our Identity Server auth mechanism locally.


When you deploy to production, just disable Stuntman and turn on Windows Auth utilizing config transforms.

I hope that answers your question, but I am glad to answer any follow up ones too :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants