Skip to content
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

Implementing Individual user accounts in local database in asp.net core 2.0 web API #2875

Closed
5Series opened this issue Feb 13, 2018 · 5 comments
Labels

Comments

@5Series
Copy link

5Series commented Feb 13, 2018

Is there a way to create web api .net core 2.0 with individual user accounts stored in app database and can be extended to use google authentication similar to .net web api template.

currently in the core web api template does not have an option for that, and also is it going to add in the future for the .net core 2.0 web api template?

@Eilon
Copy link
Member

Eilon commented Feb 13, 2018

Hi @5Series , though there isn't a built-in automatic way to do this, you can read the docs at https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/ to learn how to add external auth (such as Google accounts) to an application.

@Tratcher
Copy link
Member

As for the API aspect, you'll want a token server that can exchange your user cookie for a Bearer token. ASP.NET Core doesn't have one but there are a few 3rd party ones.

@omotayo89
Copy link

@Tratcher please point me to any third party

@Tratcher
Copy link
Member

Tratcher commented Jun 4, 2018

@Eilon Eilon closed this as completed Jan 7, 2019
@douglasg14b
Copy link

The answers here are a bit confusing. Asp.net Core WebAPI cannot have local identity management? That seems... absurd.

@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
Projects
None yet
Development

No branches or pull requests

6 participants