You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client_secret: (Optional) The client secret used to authenticate this request.
237
239
This parameter is optional when Basic Authorization is used to authenticate this request.
238
240
scope: (Optional) This parameter is used to indicate which target entity you are requesting access. To request access to an entity, use the format target-entity:<target-entity-id>:<roles>. Roles are an optional comma separated list.
241
+
tenant_id: (Optional) The Id of the tenant to use for this request.
Exchanges an OAuth authorization code and code_verifier for an access token.
1363
1369
Makes a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint and a code_verifier for an access token.
@@ -1369,6 +1375,7 @@ def exchange_o_auth_code_for_access_token_using_pkce(self, code, redirect_uri, c
1369
1375
client_secret: (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
1370
1376
redirect_uri: The URI to redirect to upon a successful request.
1371
1377
code_verifier: The random string generated previously. Will be compared with the code_challenge sent previously, which allows the OAuth provider to authenticate your app.
1378
+
tenant_id: (Optional) The Id of the tenant to use for this request.
1372
1379
"""
1373
1380
body= {
1374
1381
"code": code,
@@ -1377,13 +1384,14 @@ def exchange_o_auth_code_for_access_token_using_pkce(self, code, redirect_uri, c
client_secret: (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
1396
1404
scope: (Optional) This parameter is optional and if omitted, the same scope requested during the authorization request will be used. If provided the scopes must match those requested during the initial authorization request.
1397
1405
user_code: (Optional) The end-user verification code. This code is required if using this endpoint to approve the Device Authorization.
1406
+
tenant_id: (Optional) The Id of the tenant to use for this request. Required if the request is for a universal application.
If you will be using the Resource Owner Password Credential Grant, you will make a request to the Token endpoint to exchange the user’s email and password for an access token.
client_secret: (Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header.
1435
1445
scope: (Optional) This parameter is optional and if omitted, the same scope requested during the authorization request will be used. If provided the scopes must match those requested during the initial authorization request.
1436
1446
user_code: (Optional) The end-user verification code. This code is required if using this endpoint to approve the Device Authorization.
1447
+
tenant_id: (Optional) The Id of the tenant to use for this request.
Inspect an access token issued as the result of the User based grant such as the Authorization Code Grant, Implicit Grant, the User Credentials Grant or the Refresh Grant.
1627
1639
1628
1640
Attributes:
1629
1641
client_id: The unique client identifier. The client Id is the Id of the FusionAuth Application for which this token was generated.
1630
1642
token: The access token returned by this OAuth provider as the result of a successful client credentials grant.
1643
+
tenant_id: (Optional) The Id of the tenant to use for this request.
0 commit comments