340 questions
0
votes
1
answer
67
views
User consent not showing in Microsoft Identiy platform using MSAL
I want to access some shared Mailbox using the Microsoft Graph API.
The user consent is triggered in a React application, that gets the delegated access token.
This token is handed over to a spring ...
0
votes
0
answers
82
views
Azure AD B2C custom policies - prefill username from sign-in screen to password reset user journey
I have a requirement to enhance the user where I want to prefill the username in password reset flow when user is clicking the Forgot password option.
I am using custom policies where user enter ...
0
votes
2
answers
133
views
Entity Framework applying migration that no longer exists
I am using Entity Framework to redo our ancient internal auth system and have ran into an issue where running
dotnet ef database update
is running the wrong migrations...
When I run with the --...
0
votes
0
answers
51
views
Minimal API with Individual Accounts and read appconfig
I have a .NET 8 Blazor solution. In the server project, I added some Minimal APIs protected with individual accounts (just using the Visual Studio template).
For example:
public static void ...
0
votes
0
answers
137
views
Read device code from device code flow using java; MSAL; Microsoft Graph API
Below is my code and I want a way to copy URL and Device code into a variable so that I can use selenium to log in to the browser and use the code to authenticate. Only challenge here is I am not able ...
2
votes
0
answers
92
views
Can the RESTful API of Microsoft Identity for bearer tokens be scaffolded in .NET 8?
I created a project in Visual Studio using Microsoft Identity, but only the API with bearer token authentication, without any UI. I want to modify the default endpoints that come with it. Because of ...
1
vote
0
answers
143
views
Call identity provider in code with C# / .NET Core Microsoft OIDC library
I am converting a website to .NET Core, and switching nuget for authorization to Microsoft.AspNetCore.Authentication.OpenIdConnect.
We use Azure b2c to handle login for website users.
We also use the ...
0
votes
2
answers
468
views
Attribute [Authorize] works only when page is reloaded
I have a Blazor web app with .NET 8. I am trying to configure the app so that certain pages route users to the login page.
I have it working, except that the redirect only happens when I reload the ...
0
votes
0
answers
292
views
Access token for Microsoft Teams Device Management API
I would like to programmatically manage Teams Devices. E.g. run a script like this that manages configuration profiles. The way to run this is catch the access token from the browser's dev tools. ...
-1
votes
1
answer
2k
views
Adding login with microsoft to keycloak
I've been implementing keycloak as my authorization server, and most of it works as expected, however i'm a bit stumbed by the Microsoft identity provider.
I may be misunderstanding a core cencept ...
0
votes
2
answers
232
views
How to select specific app registration based on tenant ID in ASP.NET Core MVC with Microsoft Identity Platform?
I have an ASP.NET Core MVC app using the Microsoft Identity Platform for authentication, currently set up for multi-tenancy with one app registration. I want to extend this to support two separate app ...
1
vote
1
answer
155
views
Get UsageRights for User via Microsoft Graph throwing error
I am writing an Excel Web Add-in that asks the user to login and calls a Web API for generating the access token. I have been successfully able to login using Microsoft and the add-in is working fine. ...
0
votes
0
answers
261
views
Adding OAuth scopes to a call in an OpenApi Generator generated client
I'm using OpenAPI Generator (7.8.0-SNAPSHOT with RestSharp library) to generate a C# client for a rest api deployed on Azure that is using OAuth to grant access and authorizations.
Now the ...
1
vote
1
answer
343
views
MsalUiRequiredException: An error occured during token acquisition: No account or login hint was passed to the AcquireTokenSilent call
I have a problem with the login and don't know what to do.
I'm pretty sure it has to do with my program.cs:
using MudBlazor.Services;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using ...
0
votes
0
answers
42
views
How to configure UserRoles when using Microsoft Identity and extending the IdentityUser and IdentityRole model? Creating duplicate tables
I'm using EntityFrameworkCore 8.0.6 and Microsoft.Identity.Core 8.0.6.
I have a extended the models for user and roles
public class Role : IdentityRole<int>
{
...
public string? ...