Azure B2C Issues and Issues

I have been working with Azure B2C for a couple of days and have a few questions and questions:

  • The URL that it creates to redirect to login is not configured correctly. It contains a question mark twice - after the URL and again after the profile name. This causes a 404 error not found at every login, logout, etc. For example, the URL that he is trying to redirect for login is as follows: https://login.microsoftonline.com/samlmanbc.onmicrosoft.com/oauth2/v2.0/authorize?p=b2c_1_firstdemoprofile?client_id=08fcblahblah . You will notice the second question mark after the profile name and what violates it.

  • If I fix this and try to log in, it will not recognize the username / password of my account, which is the global administrator. It recognizes the username / password of a new user created locally in the directory.

  • In the OnRedirectToIdentityProvider method, when the request type is authentication, AuthenticationResponseChallenge is null, which leads to the failure of this call: OpenIdConnectConfiguration config = await mgr.GetConfigurationByPolicyAsync (CancellationToken.None, notification.OwinConcept.uttext.uttext.uttext );

I worked around this using the static SignInPolicyId string for the second parameter. This works fine when the account already exists, but if it doesn’t, Azure doesn’t work when you log in and says that the user does not have an account. So what is the correct value to use there and / or how to initialize it so that it is not null?

  1. The type of application added to the profile is preceded by "extension_"; will it always be true or just now? For example, I added a property called "favoriteTeam", but the claim type for it is "extension_favoriteTeam".

  2. FaceBook , Facebook (http://www.facebook.com/claims/AccessToken)? ACS Facebook, , Facebook, .

+4
2

1 - Microsoft.IdentityModel.Protocol.Extensions 1.0.2.206221351 . , , , nuget.

+8
  1. , . , " ", ( - ).

  2. . Admin UX, .

  3. . ETA.

0

Source: https://habr.com/ru/post/1608552/


All Articles