Skip to content

Commit

Permalink
Update API Client
Browse files Browse the repository at this point in the history
#### What's Changed
---

##### `POST` /flows/executor/{flow_slug}/

###### Request:

Changed content type : `application/json`

Updated `ak-provider-oauth2-device-code` component:
* Changed property `code` (integer -> string)
  • Loading branch information
authentik-automation[bot] committed Nov 13, 2024
1 parent 59cf273 commit 2d3f0ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "authentik-client"
version = "3.2024101.2"
version = "3.2024101.3"
authors = ["[email protected]"]
description = "Making authentication simple."
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion docs/OAuthDeviceCodeChallengeResponseRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**component** | Option<**String**> | | [optional][default to ak-provider-oauth2-device-code]
**code** | **i32** | |
**code** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
3 changes: 2 additions & 1 deletion schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44957,7 +44957,8 @@ components:
minLength: 1
default: ak-provider-oauth2-device-code
code:
type: integer
type: string
minLength: 1
required:
- code
OAuthDeviceCodeFinishChallenge:
Expand Down
4 changes: 2 additions & 2 deletions src/models/o_auth_device_code_challenge_response_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ pub struct OAuthDeviceCodeChallengeResponseRequest {
#[serde(rename = "component", skip_serializing_if = "Option::is_none")]
pub component: Option<String>,
#[serde(rename = "code")]
pub code: i32,
pub code: String,
}

impl OAuthDeviceCodeChallengeResponseRequest {
/// Response that includes the user-entered device code
pub fn new(code: i32) -> OAuthDeviceCodeChallengeResponseRequest {
pub fn new(code: String) -> OAuthDeviceCodeChallengeResponseRequest {
OAuthDeviceCodeChallengeResponseRequest { component: None, code }
}
}

0 comments on commit 2d3f0ac

Please sign in to comment.