redfish_codegen/models/external_account_provider/v1_6_0/o_auth_2m.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum OAuth2M {
6 /// This value shall indicate the service performs token validation from information found at the URIs specified by the ServiceAddresses property. Services shall implement a caching method of this information so it's not necessary to retrieve metadata and key information for every request containing a token.
7 Discovery,
8 /// This value shall indicate the service performs token validation from properties configured by a client. Clients should configure the Issuer and OAuthServiceSigningKeys properties for this mode.
9 Offline,
10}
11
12#[allow(clippy::derivable_impls)]
13impl Default for OAuth2M {
14 fn default() -> OAuth2M {
15 OAuth2M::Discovery
16 }
17}
18
19impl crate::Metadata<'static> for OAuth2M {
20 const JSON_SCHEMA: &'static str = "ExternalAccountProvider.v1_6_0.json";
21}