-
Notifications
You must be signed in to change notification settings - Fork 10.3k
QUESTION: How to implement the OAuth 2 server in ASP.NET Core web application(.net core)? #1557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We don't have any Oauth2 server implementation in ASP.NET Core but you can use https://github.com/IdentityServer/IdentityServer4 or https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server or https://github.com/openiddict/openiddict-core |
need demo |
Lots of samples and walkthrus here: https://identityserver4.readthedocs.io/en/release/quickstarts/0_overview.html |
Problem with IdentityServer4 is there are no examples for 1.0.0 to hookup up to mongodb. Not everyone uses entity framework and sql server. |
Using Mongo or any other data store is just an exercise in implementing the store interface. Here are the 3 in-memory implementations you'd need to replicate with Mongo: https://github.com/IdentityServer/IdentityServer4/tree/dev/src/IdentityServer4/Stores/InMemory |
and what about UserStore? I see TestUserStore but it doesn't implement any interface. |
That's entirely up to your UI layer. Do whatever you need. If you want to use ASP.NET Identity, then you'd look to implement a mongo store for that. If you have an existing identity DB then use that. |
I know this an old post, but if you are still looking for a sample you may wish to take a look into this - https://github.com/Rilton/IdentityServer4.Samples.Mongo |
Thought I'd put this out there if anyone is still looking: https://bitbucket.org/easydynamics/edc.netcore.auth |
Hi , Or we should use third party solutions suggested below.
|
I think ASP.NET Core should not implement an oauth server of any kind. Why bloat ASP.NET Core? Just use third party NuGets... |
Closing this issue because there is already further discussion in https://github.com/aspnet/Identity/issues/503 and aspnet/Identity#1460. |
lame |
typical microsoft, breath heavy and no follow through. one way or another, even by standalone package UseOAuthAuthorizationServer should have been ported for compatibility. |
How to implement the OAuth 2 server in ASP.NET Core web application(.net core)?
The text was updated successfully, but these errors were encountered: