-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Description
How can a custom external authentication provider (for example called MyCustomAuth) be implemented (from start to finish) like:
- Your existing providers (Facebook/Google/Microsoft/etc..)
- 3rd-party providers (GitHub/LinkedIn/Yahoo/etc..)
I am able to setup the WebApp side & get an external login button, but cannot get the external provider side working with how the endpoints (authorize, token & user information) work and interact back to the WebApp.
I have attempted using an OAuthHandler, but if this is overkill and and a RemoteAuthenticationHandler or AuthenticationHandler could be used instead, please let me know.
Is there a basic example project to show how both sides work together OR in one that particularly demonstrates how the endpoints work with the authentication middleware and gets from:
- page /Identity/Account/Login, where a user then clicks on MyCustomAuth button under "Use another service to log in"
- to page /Identity/Account/ExternalLogin, where user enters their email and clicks Register under "Associate your account".
I think this documentation & example project would be very helpful.
Thanks in advance.