skip to Main Content

Azure – me request is only valid with delegated authentication flow in Graph API in .Net Core API

I have a .net core api and User.Read delegated permission is given. Authentication section in startup.cs: services.AddAuthentication("Bearer") .AddMicrosoftIdentityWebApi(Configuration.GetSection("AzureAd")); Getting the graph api client: var credential = new DefaultAzureCredential(); var token = credential.GetToken( new Azure.Core.TokenRequestContext( new[] { "https://graph.microsoft.com/.default" })); var accessToken…

VIEW QUESTION

Azure – msgraph-sdk-go can't create more than two extensions on a user

When I try to create an schema extension on a user like this schemaExtension := graphmodels.NewSchemaExtension() additionalData := map[string]interface{}{ "extensionName": "dean.ext.test.1", "theme": "dark", "color": "purple", "lang": "English", } schemaExtension.SetAdditionalData(additionalData) if result, err := client.UsersById(userId).Extensions().Post(context.Background(), schemaExtension, nil); err != nil {…

VIEW QUESTION

Azure – How get access token for another resource using Microsoft OAuth

The user logs in with https://login.live.com/oauth20_authorize.srf Parameters: client_id=<CLIENT_ID> response_type=code scope=XboxLive.signin offline_access redirect_uri=<REDIRECT_URL> And gets an authorization_code M.R3_BAY.5530f5eb... When using: https://login.live.com/oauth20_token.srf grant_type=authorization_code client_id=<CLIENT_ID> scope=Xboxlive.signin Xboxlive.offline_access code=M.R3_BAY.5530f5eb... redirect_uri=https://localhost/oauth_success client_secret=<CLIENT_SECRET> Getting access_token and refresh_token. I want to use one of these tokens to…

VIEW QUESTION

Retrieve access token of an api call in Flutter

I have this below code which prints the access_token along with some other data when I print reponse.body. Printing reponse.headers["access_token] returns null and also printing response.body["access_token"] says The argument type 'String' can't be assigned to the parameter type 'int'.dart. How…

VIEW QUESTION
Back To Top
Search