All Questions
Tagged with azure-ad-b2c .net-core
59
questions
0
votes
1
answer
599
views
How to add Group claim in the B2C user token?
Currently we have an app registration in the Azure B2C tenant. We want to include the Group claim as part of the B2C user token.
Tried below approach
Updated the app registration manifest to "...
1
vote
2
answers
358
views
Adding a custom claim in Azure B2C using user flows
Using an external IDP in azure B2C. Is it possible to add a custom claim to the JWT without using custom policies?
In my IDP I have this code in the /connect/token endpoint:
This works as expected and ...
2
votes
0
answers
145
views
Method AddMicrosoftIdentityWebApiAuthentication do not working
I'm using AzureB2C to authenticate my .net7 API.
When I change the obsolete code:
services.AddAuthentication(AzureADB2CDefaults.JwtBearerAuthenticationScheme)
.AddAzureADB2CBearer(...
1
vote
0
answers
125
views
How to refresh Azure B2C IDP pass through tokens
Using Microsoft Azure B2C with IDP pass through (https://learn.microsoft.com/en-us/azure/active-directory-b2c/idp-pass-through-user-flow?pivots=b2c-user-flow) in combination with a Blazor WASM ...
0
votes
1
answer
303
views
Auth setup of B2C Web API accessing confidential client (multitenant) Web API
I have a multi-tenant Web API of tenant A. It has permissions exposed and accepted by a B2C Web API of tenant B. (The API App Services live in the same tenant, but their AD instances are separate due ...
-1
votes
2
answers
738
views
How to get custom Azure Active Directory B2C user attributes using .NET Core
Using Azure B2C Active Directory. Enforcing authentication. I'm able to get the user and email address. However I do I get a custom attribute with c#?
[Authorize]
[HttpGet("...
-1
votes
1
answer
63
views
Azure AAD B2C Sample API Issue
I have an issue with the Azure sample AAD B2C API (all the steps are followed) - code taken from: AAD B2C
Note: Also tested with another sample AAD code: AAD and it worked without any issues.
The ...
1
vote
0
answers
231
views
How do I clear Session in within OnTokenValidated in .NET Core 6
How can I clear the Session inside OnTokenValidated after a user logs in? Here's my Program.cs code (.NET Core 6):
builder.Services.Configure<MicrosoftIdentityOptions>(options =>
{
...
0
votes
1
answer
1k
views
GraphAPI error says that this user cannot be invited because the domain of the user's email address is a verified domain of this directory
I use the GraphAPI to add users from my code to inject users into Azure AD B2C. I use the following snippet:
IConfidentialClientApplication confidentialClientApplication = ...
2
votes
1
answer
2k
views
Allow Anonymous Access to Index Authorize Everything Else
I'm trying to authorize all pages by default and allow anonymous access to the index page. But when I run my app the user is required to login to view the index page. I'm using Azure AB B2C for ...
0
votes
1
answer
299
views
Where does authentication go in a webapi when using APIM, App Service, B2C, dotnet core
I am having trouble finding guidance on how I should approach authentication in my architecture. I am using Azure AD B2C for a dotnet core webapi app which is currently being deployed into Azure App ...
0
votes
1
answer
220
views
How to implement Azure B2C for an Angular Website hosted across multiple URIs
We are trying to develop a new (Angular) website that uses Azure B2C for authentication. This website will connect to a .NET API.
The problem is that this website (single code base) will be hosted on ...
1
vote
1
answer
2k
views
Azure B2C Login and then navigate back throws error
We have a net core application that uses an Azure B2C sign in flow.
When the app starts up, the user is directed to the login page and then redirected to Home/Index on successful login.
But, in the ...
0
votes
1
answer
3k
views
Azure AD - Insufficient privileges to perform requested operation by the application '00000003-0000-0000-c000-000000000000'
I work on a task that should invite users and add them in my azure active directory list. Before being able to access my app, the invited user should verify through email. This is the code I use:
...
0
votes
0
answers
372
views
Invoke azure B2C "Reset Password" flow from a button inside the applcation after user is signed in
I am using Azure B2C SignIn user flow to sign in users, and with this flow I can reset user's password through "Forgot your password?" link:
https://domain.b2clogin.com/domain.onmicrosoft....