Module: Authentik::Api::ChallengeTypes
- Defined in:
- lib/authentik/api/models/challenge_types.rb
Class Method Summary collapse
-
.build(data) ⇒ Object
Builds the object.
-
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3).
-
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3).
-
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3).
Class Method Details
.build(data) ⇒ Object
Builds the object
93 94 95 96 97 98 99 100 101 |
# File 'lib/authentik/api/models/challenge_types.rb', line 93 def build(data) discriminator_value = data[openapi_discriminator_name] return nil if discriminator_value.nil? klass = openapi_discriminator_mapping[discriminator_value.to_s.to_sym] return nil unless klass Authentik::Api.const_get(klass).build_from_hash(data) end |
.openapi_discriminator_mapping ⇒ Object
Discriminator’s mapping (OpenAPI v3)
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/authentik/api/models/challenge_types.rb', line 55 def openapi_discriminator_mapping { :'ak-provider-iframe-logout' => :'IframeLogoutChallenge', :'ak-provider-oauth2-device-code' => :'OAuthDeviceCodeChallenge', :'ak-provider-oauth2-device-code-finish' => :'OAuthDeviceCodeFinishChallenge', :'ak-provider-saml-native-logout' => :'NativeLogoutChallenge', :'ak-source-oauth-apple' => :'AppleLoginChallenge', :'ak-source-plex' => :'PlexAuthenticationChallenge', :'ak-source-telegram' => :'TelegramLoginChallenge', :'ak-stage-access-denied' => :'AccessDeniedChallenge', :'ak-stage-authenticator-duo' => :'AuthenticatorDuoChallenge', :'ak-stage-authenticator-email' => :'AuthenticatorEmailChallenge', :'ak-stage-authenticator-sms' => :'AuthenticatorSMSChallenge', :'ak-stage-authenticator-static' => :'AuthenticatorStaticChallenge', :'ak-stage-authenticator-totp' => :'AuthenticatorTOTPChallenge', :'ak-stage-authenticator-validate' => :'AuthenticatorValidationChallenge', :'ak-stage-authenticator-webauthn' => :'AuthenticatorWebAuthnChallenge', :'ak-stage-autosubmit' => :'AutosubmitChallenge', :'ak-stage-captcha' => :'CaptchaChallenge', :'ak-stage-consent' => :'ConsentChallenge', :'ak-stage-dummy' => :'DummyChallenge', :'ak-stage-email' => :'EmailChallenge', :'ak-stage-endpoint-agent' => :'EndpointAgentChallenge', :'ak-stage-flow-error' => :'FlowErrorChallenge', :'ak-stage-identification' => :'IdentificationChallenge', :'ak-stage-password' => :'PasswordChallenge', :'ak-stage-prompt' => :'PromptChallenge', :'ak-stage-session-end' => :'SessionEndChallenge', :'ak-stage-user-login' => :'UserLoginChallenge', :'xak-flow-frame' => :'FrameChallenge', :'xak-flow-redirect' => :'RedirectChallenge', :'xak-flow-shell' => :'ShellChallenge' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
50 51 52 |
# File 'lib/authentik/api/models/challenge_types.rb', line 50 def openapi_discriminator_name :'component' end |
.openapi_one_of ⇒ Object
List of class defined in oneOf (OpenAPI v3)
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/authentik/api/models/challenge_types.rb', line 14 def openapi_one_of [ :'AccessDeniedChallenge', :'AppleLoginChallenge', :'AuthenticatorDuoChallenge', :'AuthenticatorEmailChallenge', :'AuthenticatorSMSChallenge', :'AuthenticatorStaticChallenge', :'AuthenticatorTOTPChallenge', :'AuthenticatorValidationChallenge', :'AuthenticatorWebAuthnChallenge', :'AutosubmitChallenge', :'CaptchaChallenge', :'ConsentChallenge', :'DummyChallenge', :'EmailChallenge', :'EndpointAgentChallenge', :'FlowErrorChallenge', :'FrameChallenge', :'IdentificationChallenge', :'IframeLogoutChallenge', :'NativeLogoutChallenge', :'OAuthDeviceCodeChallenge', :'OAuthDeviceCodeFinishChallenge', :'PasswordChallenge', :'PlexAuthenticationChallenge', :'PromptChallenge', :'RedirectChallenge', :'SessionEndChallenge', :'ShellChallenge', :'TelegramLoginChallenge', :'UserLoginChallenge' ] end |