Questions tagged [azure-oauth]
27 questions
5
votes
1 answer
Protecting SPA and API using Azure AD and app roles
I am building a system where a SPA can call an API. The SPA as well as the API are represented in Azure AD using app registrations that require users to be assigned to it.
During the assignment, the user is also assigned to a Role that the app…

jokarl
- 1,913
- 2
- 24
- 52
2
votes
2 answers
MSAL - Network request failed. Please check network trace to determine root cause
I am trying to use MSAL for node.js for OAuth 2.0 authentication, and I'm getting an error when calling acquireTokenByAuthCode.
Network request failed. Please check network trace to determine root cause. | Fetch client threw: Error: HTTP status code…

chrispytoes
- 1,714
- 1
- 20
- 53
2
votes
1 answer
Azure registered app error: The user or administrator has not consented to use the application with ID
We´re trying to get the token for Oauth using the official docs request:
https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize?
client_id='my client…

jsanchezs
- 1,992
- 3
- 25
- 51
1
vote
1 answer
Microsoft/Azure OAuth failing, my organization lacks a service principal
I've been trying to use the Bing Ads API, but can't even make it past the first step. I've followed these steps to the letter, but am getting stuck at the part where I need to ask for user consent.
I've created an app, and copied all the details…

Jul
- 375
- 5
- 18
1
vote
1 answer
Azure Active Directory add custom data to Oauth2 token
I'm using the auth endpoint https://login.microsoftonline.com/tenant-id/oauth2/v2.0/token programmatically (Nodejs) for getting back a token that will be used against my API. I have everything properly configured to send the request using a "Client…

Farid Hajnal
- 253
- 4
- 15
1
vote
1 answer
Why does Visual Studio skip some directories like Controllers, Classes, and App_Start when publishing to Azure?
I have a classic ASP.Net forms based website where I have added s set of API hits based on the OAuthAuthorizationServerProvider class. It works great locally, now I trying to publish it to an Azure App Service. The ASP.Net portion of the website…

Russ Petersen
- 765
- 1
- 9
- 29
0
votes
1 answer
Decoding azure access token obtained by client credential flow
Got access token using azure.identity ClientSecretCredential client credential flow but when trying to decode using the PyJwt library giving me the below error.
ValueError: Could not deserialize key data. The data may be in an incorrect format or…

m9m9m
- 1,655
- 3
- 21
- 41
0
votes
0 answers
Springboot reactive webflux with oauth2 client credentials flow for azure active directory
I'm trying to get the springboot webflux oauth2 client_credentials flow work but the application is working as expected.
Referring to a lot of questions and answers on stackoverflow, springboot docs I could not get a working solution. Any leads will…

Venu
- 1,513
- 3
- 19
- 37
0
votes
1 answer
Can I set two different Redirect URL (Reply URL) inside a SPA application inside Azure AD
I am running a React application. I have registered this application with Azure AD (got one client id). I am also implementing oAuth using Azure React MSAL package.
I am running this application locally and planning to host it on Azure App service…

OpenStack
- 5,048
- 9
- 34
- 69
0
votes
1 answer
Getting Azure AD Enterprise Application user group in jwt token using MSAL in C#
I have an application in Vue.js that obtains user/bearer tokens using oidc-client that gives information about the usergroups in a particular Enterprise Application in Azure AD, the current logged in user is part of. We have used the following as…

user9057272
- 367
- 2
- 5
- 17
0
votes
1 answer
How to generate Access Token for Azure with grant type password? PowerBI REST API
I want to be able to get access tokens automatically without the need of user interaction (that is manually typing the credentials in an OAuth pop-out).
I'm using grant_type: password for this; however, I'm getting an invalid_grant error, saying the…

Daniel Rivas
- 15
- 4
0
votes
0 answers
How can I implements authenticate() method in my customAuthenticator because I don't use a database
I implements 0auth2 authentication in my symfony project with azure AD. I follow this documentation: https://github.com/knpuniversity/oauth2-client-bundle.
But, me, I don't use a database and I don't know how make for authenticate a user in my…

Halit Cinici
- 21
- 1
0
votes
1 answer
How should I create app registrations on-demand for my users in Azure B2C?
I have a simple ASPNET Core Razor Pages app + ASPNET Core API:
for example the API just has:
builder.Services
.AddAuthentication(...)
.AddMicrosoftIdentityWebApi()
Razor pages has:
builder.Services
…

Victorio Berra
- 2,760
- 2
- 28
- 53
0
votes
1 answer
MS Graph API Granted Scopes not reflecting in the Access Token
We have a mail integration for MS mailboxes and we use MS Graph API for our integration. We have created an OAuth app and the right Mail scopes have been added to the app, while generating the access token we use the v2 OAuth endpoint mentioned in…
0
votes
1 answer
How to make all refresh tokens invalid for getting access token to make it more secure
Somehow I managed to reduce default access token lifetime to 30 minutes. This made tokens to expire or invalid after 30 minutes. Now the problem is few users already got refresh tokens along with access token before and using those to get access…

user000682
- 17
- 5