Open Closed

Add OAuth2 as external login #2316


User avatar
0
alaa created
  • ABP Framework version: v4.4.4
  • UI type: Angular / MVC public
  • DB provider: EF Core / Oracle
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hello, I want to add Custom Oauth2 Login Provider but i try some solution but not working, i want to implement it as external login to view login button in login page as external login in angular and web public.

I want to integrate with UAEPass thanks


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We don’t know about UAEPass, if it supports the standard Oauth2 protocol, you can refer to

    https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/?view=aspnetcore-6.0&tabs=visual-studio https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers

  • User Avatar
    0
    alaa created

    hi

    We don’t know about UAEPass, if it supports the standard Oauth2 protocol, you can refer to

    https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/?view=aspnetcore-6.0&tabs=visual-studio https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers

    thank you dear for your answer. doses the external login buttons appear on angular application or only on MVC application?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Only on MVC application.

  • User Avatar
    0
    alaa created

    hi

    Only on MVC application.

    can i add it to angular any way?

  • User Avatar
    0
    muhammedaltug created

    Hello alaa

    You can add provider buttons by replacing Login Component.

    You can follow this guide to replace Login Component.

    Also we use angular-oauth2-oidc library in abp. You can check how we implemented Authorization Code Flow strategy and Resource Owner Password flow with this library at auth-flow-strategy file.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11