Skip to content

Commit

Permalink
-e Update API Client
Browse files Browse the repository at this point in the history
  • Loading branch information
authentik-automation[bot] committed Oct 1, 2024
1 parent 4e8fe62 commit fac7eef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 2 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "authentik-client"
version = "3.2024083.0"
version = "3.2024083.1"
authors = ["[email protected]"]
description = "Making authentication simple."
license = "MIT"
Expand All @@ -9,11 +9,7 @@ repository = "https://github.com/authentik-community/client-rust.git"

[dependencies]
serde = { version = "^1.0", features = ["derive"] }
serde_with = { version = "^3.8", default-features = false, features = [
"base64",
"std",
"macros",
] }
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
serde_json = "^1.0"
serde_repr = "^0.1"
url = "^2.5"
Expand Down
4 changes: 2 additions & 2 deletions schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41620,14 +41620,14 @@ components:
LoginChallengeTypes:
oneOf:
- $ref: '#/components/schemas/RedirectChallenge'
- $ref: '#/components/schemas/PlexAuthenticationChallenge'
- $ref: '#/components/schemas/AppleLoginChallenge'
- $ref: '#/components/schemas/PlexAuthenticationChallenge'
discriminator:
propertyName: component
mapping:
xak-flow-redirect: '#/components/schemas/RedirectChallenge'
ak-source-plex: '#/components/schemas/PlexAuthenticationChallenge'
ak-source-oauth-apple: '#/components/schemas/AppleLoginChallenge'
ak-source-plex: '#/components/schemas/PlexAuthenticationChallenge'
LoginMetrics:
type: object
description: Login Metrics per 1h
Expand Down
4 changes: 2 additions & 2 deletions src/models/login_challenge_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ use serde::{Deserialize, Serialize};
pub enum LoginChallengeTypes {
#[serde(rename = "xak-flow-redirect")]
XakFlowRedirect(models::RedirectChallenge),
#[serde(rename = "ak-source-plex")]
AkSourcePlex(models::PlexAuthenticationChallenge),
#[serde(rename = "ak-source-oauth-apple")]
AkSourceOauthApple(models::AppleLoginChallenge),
#[serde(rename = "ak-source-plex")]
AkSourcePlex(models::PlexAuthenticationChallenge),
}

impl Default for LoginChallengeTypes {
Expand Down

0 comments on commit fac7eef

Please sign in to comment.