Skip to content

Commit 68acca6

Browse files
validate and libs
1 parent 7be8e64 commit 68acca6

25 files changed

+310
-91
lines changed

src/main/api/approveDevice.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@
4141
"type": "form",
4242
"parameterName": "user_code",
4343
"javaType": "String"
44-
},
45-
{
46-
"name": "tenantId",
47-
"comments": [
48-
"(Optional) The Id of the tenant to use for this request."
49-
],
50-
"type": "form",
51-
"javaType": "UUID"
5244
}
5345
]
5446
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"uri": "/oauth2/device/approve",
3+
"comments": [
4+
"Approve a device grant."
5+
],
6+
"method": "post",
7+
"methodName": "approveDeviceWithRequest",
8+
"successResponse": "DeviceApprovalResponse",
9+
"errorResponse": "Errors",
10+
"params": [
11+
{
12+
"name": "request",
13+
"comments": [
14+
"The request object containing the device approval information and optional tenantId."
15+
],
16+
"type": "body",
17+
"javaType": "DeviceApprovalRequest"
18+
}
19+
]
20+
}

src/main/api/clientCredentialsGrant.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@
4444
],
4545
"type": "form",
4646
"javaType": "String"
47-
},
48-
{
49-
"name": "tenantId",
50-
"comments": [
51-
"(Optional) The Id of the tenant to use for this request."
52-
],
53-
"type": "form",
54-
"javaType": "UUID"
5547
}
5648
]
5749
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"uri": "/oauth2/token",
3+
"comments": [
4+
"Make a Client Credentials grant request to obtain an access token."
5+
],
6+
"method": "post",
7+
"methodName": "clientCredentialsGrantWithRequest",
8+
"successResponse": "AccessToken",
9+
"errorResponse": "OAuthError",
10+
"anonymous": true,
11+
"params": [
12+
{
13+
"name": "request",
14+
"comments": [
15+
"The client credentials grant request containing client authentication, scope and optional tenantId."
16+
],
17+
"type": "body",
18+
"javaType": "ClientCredentialsGrantRequest"
19+
}
20+
]
21+
}

src/main/api/deviceAuthorize.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"uri": "/oauth2/device_authorize",
3+
"comments": [
4+
"Start the Device Authorization flow using form-encoded parameters"
5+
],
6+
"method": "post",
7+
"methodName": "deviceAuthorize",
8+
"successResponse": "DeviceResponse",
9+
"errorResponse": "OAuthError",
10+
"anonymous": true,
11+
"params": [
12+
{
13+
"name": "client_id",
14+
"comments": [
15+
"The unique client identifier. The client Id is the Id of the FusionAuth Application in which you are attempting to authenticate."
16+
],
17+
"type": "form",
18+
"javaType": "String"
19+
},
20+
{
21+
"name": "client_secret",
22+
"comments": [
23+
"(Optional) The client secret. This value may optionally be provided in the request body instead of the Authorization header."
24+
],
25+
"type": "form",
26+
"javaType": "String"
27+
},
28+
{
29+
"name": "scope",
30+
"comments": [
31+
"(Optional) A space-delimited string of the requested scopes. Defaults to all scopes configured in the Application's OAuth configuration."
32+
],
33+
"type": "form",
34+
"javaType": "String"
35+
}
36+
]
37+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"uri": "/oauth2/device_authorize",
3+
"comments": [
4+
"Start the Device Authorization flow using a request body"
5+
],
6+
"method": "post",
7+
"methodName": "deviceAuthorizeWithRequest",
8+
"successResponse": "DeviceResponse",
9+
"errorResponse": "OAuthError",
10+
"anonymous": true,
11+
"params": [
12+
{
13+
"name": "request",
14+
"comments": [
15+
"The device authorization request containing client authentication, scope, and optional device metadata."
16+
],
17+
"type": "body",
18+
"javaType": "DeviceAuthorizationRequest"
19+
}
20+
]
21+
}

src/main/api/exchangeOAuthCodeForAccessToken.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@
5252
],
5353
"type": "form",
5454
"javaType": "String"
55-
},
56-
{
57-
"name": "tenantId",
58-
"comments": [
59-
"(Optional) The Id of the tenant to use for this request."
60-
],
61-
"type": "form",
62-
"javaType": "UUID"
6355
}
6456
]
6557
}

src/main/api/exchangeOAuthCodeForAccessTokenUsingPKCE.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@
6060
],
6161
"type": "form",
6262
"javaType": "String"
63-
},
64-
{
65-
"name": "tenantId",
66-
"comments": [
67-
"(Optional) The Id of the tenant to use for this request."
68-
],
69-
"type": "form",
70-
"javaType": "UUID"
7163
}
7264
]
7365
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"uri": "/oauth2/token",
3+
"comments": [
4+
"Exchanges an OAuth authorization code and code_verifier for an access token.",
5+
"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."
6+
],
7+
"method": "post",
8+
"methodName": "exchangeOAuthCodeForAccessTokenUsingPKCEWithRequest",
9+
"successResponse": "AccessToken",
10+
"errorResponse": "OAuthError",
11+
"anonymous": true,
12+
"params": [
13+
{
14+
"name": "request",
15+
"comments": [
16+
"The PKCE OAuth code access token exchange request."
17+
],
18+
"type": "body",
19+
"javaType": "OAuthCodePKCEAccessTokenRequest"
20+
}
21+
]
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"uri": "/oauth2/token",
3+
"comments": [
4+
"Exchanges an OAuth authorization code for an access token.",
5+
"Makes a request to the Token endpoint to exchange the authorization code returned from the Authorize endpoint for an access token."
6+
],
7+
"method": "post",
8+
"methodName": "exchangeOAuthCodeForAccessTokenWithRequest",
9+
"successResponse": "AccessToken",
10+
"errorResponse": "OAuthError",
11+
"anonymous": true,
12+
"params": [
13+
{
14+
"name": "request",
15+
"comments": [
16+
"The OAuth code access token exchange request."
17+
],
18+
"type": "body",
19+
"javaType": "OAuthCodeAccessTokenRequest"
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)