336 questions
0
votes
1
answer
81
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
2
answers
173
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
159
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
96
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
179
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
525
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
355
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
287
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
165
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
282
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
376
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
48
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? ...
0
votes
0
answers
144
views
.NET 6 Blazor Server entering login loop
I have a Blazor Server app that's written in .NET 6 that will sporadically enter a login loop and eventually fail to log the user in and send them to the Microsoft challenge page, but refuse to allow ...
1
vote
1
answer
2k
views
Error : AADSTS50059: No tenant-identifying information found in either the > request or implied by any provided credentials
I am implementing Microsoft.Identity Login in my web app to allow any organization users (outside my Tenant Id) to login. The configuration in my appsettings.json is as below.
"AzureAd": {
...