Skip to content

Document how to create custom external provider authentication #25029

@travbeamo

Description

@travbeamo

How can a custom external authentication provider (for example called MyCustomAuth) be implemented (from start to finish) like:

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"
    image
  • to page /Identity/Account/ExternalLogin, where user enters their email and clicks Register under "Associate your account".
    image

I think this documentation & example project would be very helpful.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-authIncludes: Authn, Authz, OAuth, OIDC, Bearer

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions