Skip to main content

akeyless_api/models/
o_auth2_access_rules.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// OAuth2AccessRules : OAuth2AccessRules contains access rules specific to OAuth2 authentication method.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct OAuth2AccessRules {
17    /// The audience in the JWT.
18    #[serde(rename = "audience", skip_serializing_if = "Option::is_none")]
19    pub audience: Option<String>,
20    /// The gateway cluster name that is authorized to access JWKeySetURL
21    #[serde(rename = "authorized_gw_cluster_name", skip_serializing_if = "Option::is_none")]
22    pub authorized_gw_cluster_name: Option<String>,
23    /// The claims that login is restricted to.
24    #[serde(rename = "bound_claims", skip_serializing_if = "Option::is_none")]
25    pub bound_claims: Option<Vec<models::OAuth2CustomClaim>>,
26    /// The clients ids that login is restricted to.
27    #[serde(rename = "bound_clients_id", skip_serializing_if = "Option::is_none")]
28    pub bound_clients_id: Option<Vec<String>>,
29    /// Certificate to use when calling jwks_uri from the gateway. in PEM format
30    #[serde(rename = "certificate", skip_serializing_if = "Option::is_none")]
31    pub certificate: Option<String>,
32    /// Issuer URL
33    #[serde(rename = "issuer", skip_serializing_if = "Option::is_none")]
34    pub issuer: Option<String>,
35    /// The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string
36    #[serde(rename = "jwks_json_data", skip_serializing_if = "Option::is_none")]
37    pub jwks_json_data: Option<String>,
38    /// The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server.
39    #[serde(rename = "jwks_uri", skip_serializing_if = "Option::is_none")]
40    pub jwks_uri: Option<String>,
41    /// A unique identifier to distinguish different users
42    #[serde(rename = "unique_identifier", skip_serializing_if = "Option::is_none")]
43    pub unique_identifier: Option<String>,
44}
45
46impl OAuth2AccessRules {
47    /// OAuth2AccessRules contains access rules specific to OAuth2 authentication method.
48    pub fn new() -> OAuth2AccessRules {
49        OAuth2AccessRules {
50            audience: None,
51            authorized_gw_cluster_name: None,
52            bound_claims: None,
53            bound_clients_id: None,
54            certificate: None,
55            issuer: None,
56            jwks_json_data: None,
57            jwks_uri: None,
58            unique_identifier: None,
59        }
60    }
61}
62