asp.net - External Provider Login in ASP Core, Identity Server 4 and Angular 2 -
i have asp core app setup identity server 4 provides token based authentication angular 2 spa.
to login, username , password sent via http post "/connect" endpoint of identity server.
i want extend login process include external providers (google, facebook & all) resources can find online speak of "account controller" inside of mvc app, not have.
i have been able setup client side of process (retrieve id_token of user google, on angular spa), don't know how continue .
where send oauth id_token ? use extension grants ? how ?
please note not have "account controller" class, login flow done identity server , jwt returned angular app. need guidance or advice on how take oauth id_token, gotten external providers google, send asp core backend , create user id_token, when next user logs app google, user object (apllication user) fetched him.
my setup can found @ repo : https://github.com/robisim74/angularspawebapi
for external providers need called "implicit flow" - that's how works. check quick start:
https://identityserver4.readthedocs.io/en/release/quickstarts/4_external_authentication.html
Comments
Post a Comment