Base solution for your next web application
Open Closed

Microsoft Login auth support #8542


User avatar
0
optixdev created

Angular + .Net Core microsoft Login is not working?

Couldnt find the resource on github (Note: my gihub account is linked with ASPZero)

//not implemented yet. Will be implemented with https://github.com/aspnetzero/aspnet-zero-angular/issues/5


10 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    Note that currently only Facebook, Google, OpenID Connect and ADFS authentications are implemented for Angular application. Microsoft and Twitter logins are on the road map.

    see https://github.com/aspnetzero/aspnet-zero-core/issues/42

  • User Avatar
    0
    maliming created
    Support Team

    It will be supported in v8.3.

    see https://github.com/aspnetzero/aspnet-zero-core/issues/42

  • User Avatar
    0
    optixdev created

    When v8.3 will be released?

  • User Avatar
    1
    maliming created
    Support Team

    March 05, 2020

  • User Avatar
    0
    optixdev created

    @maliming

    Angular + .Net Core (ZERO version 8.3)

    How to use Microsoft as login for second time instead of signup.

    • For first time I am able to signup successfully using Microsoft.
    • Admin activated the account.
    • I tried to login using Microsoft, it alerting me email address already exists.

    Activated users should be able to login through Microsoft Login button successfully instead of alerting "user already exists".

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @optixdev

    If user logins successfully with Microsoft Login once, further login atteps should login user automatically. Could oyu explain how it behaves for you ?

    Thanks,

  • User Avatar
    0
    optixdev created

    Hi @ismcagdas, @maliming

    User is not able to login with Microsoft account.

    1. User Sign up successfully, but not login yet at this stage.. awaits for Tenant admin to approve the account.
    2. Tenant admin approves/activate the new Microsoft user account.
    3. After activation, Microsoft user tries to login into Application for FIRST TIME by clicking Microsoft login button... but user cannot login .. getting "Error message: email address is already taken"

    It looks like the “Sign in with Microsoft” button is trying to recreate/register the account/user again rather than let me sign in after initial creation or approval of account.

    Please resolve this issue ASAP

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @optixdev,

    Is user registered to the system using AspNet Zero's register page ? If so, this is the expected behaviour at the moment. If user tries to login using Microsoft Login without register, it should work.

  • User Avatar
    0
    optixdev created

    Hi @ismcagdas

    User registered to the systen using Microsoft login button no register page/button!

    please read my previous comments carefully.

    1. User Sign up successfully, but not login yet at this stage.. awaits for Tenant admin to approve the account.
    2. Tenant admin approves/activate the new Microsoft user account.
    3. After activation, Microsoft user tries to login into Application for FIRST TIME by clicking Microsoft login button... but user cannot login .. getting "Error message: email address is already taken"

    These are my Microsoft Azure App - Redirect URIs:

    http://localhost:4200/account/login/signin-microsoft http://localhost:4200 http://localhost:4200/account/login http://localhost:4200/signin-microsoft

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you create an issue on https://github.com/aspnetzero/aspnet-zero-core so we can test and fix this problem ?

    Thanks,