Module: Authentik::Api::FlowChallengeResponseRequest
- Defined in:
- lib/authentik/api/models/flow_challenge_response_request.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
85 86 87 88 89 90 91 92 93 |
# File 'lib/authentik/api/models/flow_challenge_response_request.rb', line 85 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)
51 52 53 54 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 |
# File 'lib/authentik/api/models/flow_challenge_response_request.rb', line 51 def openapi_discriminator_mapping { :'ak-provider-iframe-logout' => :'IframeLogoutChallengeResponseRequest', :'ak-provider-oauth2-device-code' => :'OAuthDeviceCodeChallengeResponseRequest', :'ak-provider-oauth2-device-code-finish' => :'OAuthDeviceCodeFinishChallengeResponseRequest', :'ak-provider-saml-native-logout' => :'NativeLogoutChallengeResponseRequest', :'ak-source-oauth-apple' => :'AppleChallengeResponseRequest', :'ak-source-plex' => :'PlexAuthenticationChallengeResponseRequest', :'ak-source-telegram' => :'TelegramChallengeResponseRequest', :'ak-stage-authenticator-duo' => :'AuthenticatorDuoChallengeResponseRequest', :'ak-stage-authenticator-email' => :'AuthenticatorEmailChallengeResponseRequest', :'ak-stage-authenticator-sms' => :'AuthenticatorSMSChallengeResponseRequest', :'ak-stage-authenticator-static' => :'AuthenticatorStaticChallengeResponseRequest', :'ak-stage-authenticator-totp' => :'AuthenticatorTOTPChallengeResponseRequest', :'ak-stage-authenticator-validate' => :'AuthenticatorValidationChallengeResponseRequest', :'ak-stage-authenticator-webauthn' => :'AuthenticatorWebAuthnChallengeResponseRequest', :'ak-stage-autosubmit' => :'AutoSubmitChallengeResponseRequest', :'ak-stage-captcha' => :'CaptchaChallengeResponseRequest', :'ak-stage-consent' => :'ConsentChallengeResponseRequest', :'ak-stage-dummy' => :'DummyChallengeResponseRequest', :'ak-stage-email' => :'EmailChallengeResponseRequest', :'ak-stage-endpoint-agent' => :'EndpointAgentChallengeResponseRequest', :'ak-stage-identification' => :'IdentificationChallengeResponseRequest', :'ak-stage-password' => :'PasswordChallengeResponseRequest', :'ak-stage-prompt' => :'PromptChallengeResponseRequest', :'ak-stage-user-login' => :'UserLoginChallengeResponseRequest', :'xak-flow-frame' => :'FrameChallengeResponseRequest', :'xak-flow-redirect' => :'RedirectChallengeResponseRequest' } end |
.openapi_discriminator_name ⇒ Object
Discriminator’s property name (OpenAPI v3)
46 47 48 |
# File 'lib/authentik/api/models/flow_challenge_response_request.rb', line 46 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 |
# File 'lib/authentik/api/models/flow_challenge_response_request.rb', line 14 def openapi_one_of [ :'AppleChallengeResponseRequest', :'AuthenticatorDuoChallengeResponseRequest', :'AuthenticatorEmailChallengeResponseRequest', :'AuthenticatorSMSChallengeResponseRequest', :'AuthenticatorStaticChallengeResponseRequest', :'AuthenticatorTOTPChallengeResponseRequest', :'AuthenticatorValidationChallengeResponseRequest', :'AuthenticatorWebAuthnChallengeResponseRequest', :'AutoSubmitChallengeResponseRequest', :'CaptchaChallengeResponseRequest', :'ConsentChallengeResponseRequest', :'DummyChallengeResponseRequest', :'EmailChallengeResponseRequest', :'EndpointAgentChallengeResponseRequest', :'FrameChallengeResponseRequest', :'IdentificationChallengeResponseRequest', :'IframeLogoutChallengeResponseRequest', :'NativeLogoutChallengeResponseRequest', :'OAuthDeviceCodeChallengeResponseRequest', :'OAuthDeviceCodeFinishChallengeResponseRequest', :'PasswordChallengeResponseRequest', :'PlexAuthenticationChallengeResponseRequest', :'PromptChallengeResponseRequest', :'RedirectChallengeResponseRequest', :'TelegramChallengeResponseRequest', :'UserLoginChallengeResponseRequest' ] end |