The OAuth 2.0 Token Endpoint
POST {{baseUrl}}/oauth2/token
Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/
The Ory SDK is not yet able to this endpoint properly.
Request Body
[{"name"=>"grant_type", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"client_id", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"code", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"redirect_uri", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"refresh_token", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"access_token":"\u003cstring\u003e","expires_in":"\u003clong\u003e","id_token":"\u003clong\u003e","refresh_token":"\u003cstring\u003e","scope":"\u003cstring\u003e","token_type":"\u003cstring\u003e"}