Commit 20f930d
committed
-e Update API Client
#### What's Changed
---
##### `GET` /providers/oauth2/{id}/
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `PUT` /providers/oauth2/{id}/
###### Request:
Changed content type : `application/json`
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `PATCH` /providers/oauth2/{id}/
###### Request:
Changed content type : `application/json`
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `GET` /oauth2/access_tokens/{id}/
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Changed property `provider` (object)
> OAuth2Provider Serializer
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `GET` /oauth2/authorization_codes/{id}/
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Changed property `provider` (object)
> OAuth2Provider Serializer
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `GET` /oauth2/refresh_tokens/{id}/
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Changed property `provider` (object)
> OAuth2Provider Serializer
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `POST` /providers/oauth2/
###### Request:
Changed content type : `application/json`
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
###### Return Type:
Changed response : **201 Created**
* Changed content type : `application/json`
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `GET` /providers/oauth2/
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Changed property `results` (array)
Changed items (object):
> OAuth2Provider Serializer
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `PUT` /core/transactional/applications/
###### Request:
Changed content type : `application/json`
* Changed property `provider` (object)
Updated `authentik_providers_oauth2.oauth2provider` provider_model:
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `GET` /oauth2/access_tokens/
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Changed property `results` (array)
Changed items (object):
> Serializer for BaseGrantModel and RefreshToken
* Changed property `provider` (object)
> OAuth2Provider Serializer
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `GET` /oauth2/authorization_codes/
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Changed property `results` (array)
Changed items (object):
> Serializer for BaseGrantModel and ExpiringBaseGrant
* Changed property `provider` (object)
> OAuth2Provider Serializer
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).
##### `GET` /oauth2/refresh_tokens/
###### Return Type:
Changed response : **200 OK**
* Changed content type : `application/json`
* Changed property `results` (array)
Changed items (object):
> Serializer for BaseGrantModel and RefreshToken
* Changed property `provider` (object)
> OAuth2Provider Serializer
* Added property `refresh_token_threshold` (string)
> When refreshing a token, if the refresh token is valid for less than this duration, it will be renewed. When set to seconds=0, token will always be renewed. (Format: hours=1;minutes=2;seconds=3).1 parent ed98b6d commit 20f930d
File tree
23 files changed
+50
-9
lines changed- authentik_client
- models
- docs
- test
23 files changed
+50
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments