开发者

Facebook Server-Side Auth: Why does the access token request require a redirect uri?

开发者 https://www.devze.com 2023-03-17 14:30 出处:网络
In the server side auth flow, Facebook does not execute any redirects after the app requests the access token.

In the server side auth flow, Facebook does not execute any redirects after the app requests the access token.

So why does th开发者_如何学JAVAe access token request require a redirect_uri parameter?


See section 4.1.1 of the OAuth 2.0 Spec.

redirect_uri is a required paramter when obtaining an access token.

From the spec:

The authorization server MUST:

  • Validate the client credentials (if present) and ensure they match the authorization code.
  • Verify that the authorization code and redirection URI are all valid and match its stored association.
0

精彩评论

暂无评论...
验证码 换一张
取 消