Ends in:
1 DAY
4 HRS
49 MIN
12 SEC
Ends in:
1 D
4 H
49 M
12 S
Open Closed

External Login provider in Angular Account module component #8178


User avatar
0
Angelo_Nestola created

Hello

  • ABP Framework version: v7.4.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Steps to reproduce the issue:
      1. Enable and configure Microsoft Auth provider in Account Settings
      1. Redirect authentication to Frontend by editing environment.ts
      1. Start app and go to Login page
      1. Statement "Or Sign In with" and Microsoft button are not visible

If we keep authentication on backend AuthServer the button is visible and working, do we have to add it manually to frontend page like suggested in https://abp.io/support/questions/6144/Microsoft-External-Login-in-Custom-Login-Page? The difference here is that we are not working on a custom Login page, we are using Account project pre-built one. We already downloaded Account module source code.

Thank you


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

    hi

    Redirect authentication to Frontend by editing environment.ts

    Can you share a screenshot?

    Start app and go to Login page

    What type of this page? angular or authserver mvc?

    Thanks

  • User Avatar
    0
    Angelo_Nestola created

    Can you share a screenshot?

    This configuration of oAuthConfig obj allows me to use Angular Login page instead of the authServer mvc one:

    What type of this page? angular or authserver mvc?

    With previous code Homepage Login button redirects on my Angular account/login page (in which there is no "Login with Microsoft" button):

    Using the rows 6-13 you see commented in the previous code instead, it uses the backend Login page in which that button is correctly visible:

    This is my External authentication provider configuration:

    My goal is to have Microsoft authentication in Angular Login page.

    Thank you

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    With previous code Homepage Login button redirects on my Angular account/login page (in which there is no "Login with Microsoft" button):

    You are using the password grant flow of oAuth2 to get the token. so there is no external/social login button. Because you have to enter the username and password to sign in.

    https://oauth.net/2/grant-types/ https://www.oauth.com/oauth2-servers/access-tokens/password-grant/ https://www.oauth.com/oauth2-servers/access-tokens/authorization-code-request/

  • User Avatar
    0
    Angelo_Nestola created

    Because you have to enter the username and password to sign in.

    I'm using username and password just to access to the application while coding. My goal is to use Angular Login page and Microsoft auth. Once it runs fine I can disable user and password authentication.

    Thank you

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    My goal is to use Angular Login page and Microsoft auth. Once it runs fine I can disable user and password authentication.

    You should use the authorization code flow in this case.

    https://abp.io/docs/latest/framework/ui/angular/authorization#authorization-code-flow

    I will ask our angular team, I think it doesn't support the external/social login in password flow.

  • User Avatar
    -1
    maliming created
    Support Team Fullstack Developer

    hi

    I have confirmed. This feature will be available in abp 9.0

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19