My applications should login with Microsoft account (OAuth Provider). I got stuck to get user info after successfully authenticated by using following URL https://login.live.com/oauth20_authorize.srf?client_id=CLIENT_ID&scope=SCOPES&response_type=code&redirect_uri=REDIRECT_URL Can any one please help me to get user-info? Is there any library that I need to include for that ? I'm getting authenticated code but I don't know how use ? I'm working with JAVA
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
The userinfo endpoint is
https://apis.live.net/v5.0/me
. Before you call it you need to exchange thecode
for atoken
.For anyone stumbling here.
OpenID discovery URL:
https://login.live.com/.well-known/openid-configuration
Microsoft doesn't provide
userinfo_endpoint
in the service configuration jsonUserInfo URL :
https://graph.microsoft.com/v1.0/me
Make a GET request to this url with header containing
access_token
that you got after exchangingauth_code
Key:
Authorization
Value:
Bearer <access_token>