skip to Main Content

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

SpringBoot + AWS Cognito configuration, I need some clarification

I'm trying to start a new simple project with SpringBoot using AWS Cognito for authentication/authorization Following some guide on web i found some different configuration, for example: https://www.baeldung.com/spring-security-oauth-cognito https://wilkom2009.hashnode.dev/how-to-secure-spring-boot-rest-api-endpoints-with-amazon-cognito In the Baeldung is used only the spring module spring-security-oauth2-jose while…

VIEW QUESTION

Oauth2 refresh_token doesn't exists – PHP

I use below code but when I login via Microsoft account I don't receive refresh_token. Someone can explain why? $login = 'https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxx/oauth2/v2.0/authorize?'.http_build_query([ 'client_id' => $id, 'scope' => 'https://outlook.office.com/IMAP.AccessAsUser.All', 'redirect_uri' => $redirect, 'response_type' => 'code', ]);

VIEW QUESTION
Back To Top
Search