第三方登录
https://openapi.example.com/oauth/2.0/authorize? response_type=code& client_id=ABCDEFG1234& state=RWB23NQ1& redirect_uri=https%3A%2F%2FSA_HOST%3A8107%2F%3Fproject%3Dproduction%26oauth_type%3DoauthHTTP/1.1 302 Found Location: https://SA_HOST:8107/?project=production&oauth_type=oauth&code=ANXxSNjwQDugOnqehttps://openapi.example.com/oauth/2.0/token? grant_type=authorization_code& code=ANXxSNjwQDugOnqe& client_id=ABCDEFG1234& client_secret=XYZ00000& redirect_uri=https%3A%2F%2FSA_HOST%3A8107%2F%3Fproject%3Dproduction%26oauth_type%3Doauth{ "access_token": "a6b7dbd48f731035f771b8d63f6", "refresh_token": "385d55f8615dfd9edb7c4b5ebd", "expires_in": 86400, }https://openapi.example.com/userinfo? access_token=a6b7dbd48f731035f771b8d63f6& project=production{ "username":"xiaoming", "role":"analyst" }
Last updated
Was this helpful?