Skip to content

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

Closed
tedzhao opened this issue Jun 8, 2016 · 14 comments

Comments

@tedzhao
Copy link

tedzhao commented Jun 8, 2016

How to implement the OAuth 2 server in ASP.NET Core web application(.net core)?

@davidfowl
Copy link
Member

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

@geminiyellow
Copy link

need demo

@brockallen
Copy link

Lots of samples and walkthrus here: https://identityserver4.readthedocs.io/en/release/quickstarts/0_overview.html

@rontran
Copy link

rontran commented Jan 11, 2017

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.

@brockallen
Copy link

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

@rontran
Copy link

rontran commented Jan 12, 2017

and what about UserStore? I see TestUserStore but it doesn't implement any interface.

@brockallen
Copy link

brockallen commented Jan 12, 2017

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.

@souzartn
Copy link

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

@pjavan
Copy link

pjavan commented Jul 11, 2017

Thought I'd put this out there if anyone is still looking: https://bitbucket.org/easydynamics/edc.netcore.auth

@yukund
Copy link

yukund commented Aug 31, 2017

Hi ,
Will ASP.NET Core 2 implement Oauth2 server? Is it on the ASP.NET Core 2.x road map.

Or we should use third party solutions suggested below.
Thanks
Y

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

@jorgensigvardsson
Copy link

I think ASP.NET Core should not implement an oauth server of any kind. Why bloat ASP.NET Core? Just use third party NuGets...

@Eilon
Copy link
Contributor

Eilon commented Jan 16, 2018

Closing this issue because there is already further discussion in https://github.com/aspnet/Identity/issues/503 and aspnet/Identity#1460.

@BKlippel
Copy link

lame

@BKlippel
Copy link

typical microsoft, breath heavy and no follow through. one way or another, even by standalone package UseOAuthAuthorizationServer should have been ported for compatibility.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
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