OAuth - izudon/izudon.github.io GitHub Wiki

資料

Google

Auth Redirect

  • endpoint: openid-configurationauthorization_endpoint 値。
    • https://accounts.google.com/o/oauth2/v2/auth
  • params:
    • client_id
    • response_type: code
    • scope: openid email
    • redirect_uri
    • state (任意)
    • nonce (任意)
    • login_hint (任意)
    • hd (任意)

Token Request

  • endpoint: openid-configurationtoken_endpoint 値。
    • https://oauth2.googleapis.com/token
  • params:
    • code
    • client_id
    • client_secret
    • redirect_uri
    • grant_type: authorization_code

Twitter

Auth Redirect

OAuth 2.0 Authorization Code Flow with PKCE | Docs | Twitter Developer Platform

Token Request

OAuth 2.0 Making requests on behalf of users | Docs | Twitter Developer Platform

Request for user-info

GET account/verify_credentials | Docs | Twitter Developer Platform

  • endpoint: https://api.twitter.com/1.1/account/verify_credentials.json
  • GET access with Bearer Token ( access_token )
  • response sample:
    {
        :
      "id": 38895958,
      "id_str": "38895958",
        :
    }
    

Resources

Apple

Resources

PayPal - o OAuth2 o OpenID Connect