authentik-client 2026.2.2-rc2

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc2
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// AgentPssoDeviceRegistrationResponse : authentik settings for Platform SSO tokens
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AgentPssoDeviceRegistrationResponse {
    #[serde(rename = "client_id")]
    pub client_id: String,
    #[serde(rename = "issuer")]
    pub issuer: String,
    #[serde(rename = "token_endpoint")]
    pub token_endpoint: String,
    #[serde(rename = "jwks_endpoint")]
    pub jwks_endpoint: String,
    #[serde(rename = "audience")]
    pub audience: String,
    #[serde(rename = "nonce_endpoint")]
    pub nonce_endpoint: String,
}

impl AgentPssoDeviceRegistrationResponse {
    /// authentik settings for Platform SSO tokens
    pub fn new(
        client_id: String,
        issuer: String,
        token_endpoint: String,
        jwks_endpoint: String,
        audience: String,
        nonce_endpoint: String,
    ) -> AgentPssoDeviceRegistrationResponse {
        AgentPssoDeviceRegistrationResponse {
            client_id,
            issuer,
            token_endpoint,
            jwks_endpoint,
            audience,
            nonce_endpoint,
        }
    }
}