Siirry sisältöön
Sursa Developers

Objektit

OAuthTokenRequest

application/x-www-form-urlencoded-lomakkeen kentät (RFC 6749, kohdat 4.1.3, 4.4.2 ja 6).

Kentät

  • grant_typestringpakollinen

    Sallitut arvot: authorization_coderefresh_tokenclient_credentials

  • codestring

    Valtuutuskoodi (authorization_code).

  • redirect_uristring

    Sama uudelleenohjaus-URI kuin valtuutuspyynnössä (authorization_code).

  • code_verifierstring

    Alkuperäinen PKCE-arvo, 43–128 merkkiä (authorization_code).

  • refresh_tokenstring

    Päivitys (refresh_token).

  • scopestring

    Välilyönnein erotetut käyttöalueet, vain kaventaminen (refresh_token, client_credentials).

  • client_idstring

    Sovelluksen tunnus, kun salaisuutta ei välitetä Authorization: Basic-otsakkeessa.

  • client_secretstring

    confidential-sovelluksen asiakassalaisuus, kun sitä ei välitetä Authorization: Basic-otsakkeessa.

Käytössä