mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-18 03:19:51 +03:00
2f70351c90
* packages/client-go: init Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * format Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove mod/sum Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix translate Signed-off-by: Jens Langhammer <jens@goauthentik.io> * no go replace Signed-off-by: Jens Langhammer <jens@goauthentik.io> * update rust makefile with pwd Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * fix build Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix docs Signed-off-by: Jens Langhammer <jens@goauthentik.io> * don't need a version ig? Signed-off-by: Jens Langhammer <jens@goauthentik.io> * exclude go client from cspell Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix main docker build Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
1227 lines
40 KiB
Go
Generated
1227 lines
40 KiB
Go
Generated
/*
|
|
authentik
|
|
|
|
Making authentication simple.
|
|
|
|
API version: 2026.5.0-rc1
|
|
Contact: hello@goauthentik.io
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package api
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
)
|
|
|
|
// checks if the SAMLProviderRequest type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SAMLProviderRequest{}
|
|
|
|
// SAMLProviderRequest SAMLProvider Serializer
|
|
type SAMLProviderRequest struct {
|
|
Name string `json:"name"`
|
|
// Flow used for authentication when the associated application is accessed by an un-authenticated user.
|
|
AuthenticationFlow NullableString `json:"authentication_flow,omitempty"`
|
|
// Flow used when authorizing this provider.
|
|
AuthorizationFlow string `json:"authorization_flow"`
|
|
// Flow used ending the session from a provider.
|
|
InvalidationFlow string `json:"invalidation_flow"`
|
|
PropertyMappings []string `json:"property_mappings,omitempty"`
|
|
AcsUrl string `json:"acs_url"`
|
|
// Single Logout Service URL where the logout response should be sent.
|
|
SlsUrl *string `json:"sls_url,omitempty"`
|
|
// Value of the audience restriction field of the assertion. When left empty, no audience restriction will be added.
|
|
Audience *string `json:"audience,omitempty"`
|
|
// Also known as EntityID
|
|
Issuer *string `json:"issuer,omitempty"`
|
|
// Assertion valid not before current time + this value (Format: hours=-1;minutes=-2;seconds=-3).
|
|
AssertionValidNotBefore *string `json:"assertion_valid_not_before,omitempty"`
|
|
// Assertion not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
|
|
AssertionValidNotOnOrAfter *string `json:"assertion_valid_not_on_or_after,omitempty"`
|
|
// Session not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
|
|
SessionValidNotOnOrAfter *string `json:"session_valid_not_on_or_after,omitempty"`
|
|
// Configure how the NameID value will be created. When left empty, the NameIDPolicy of the incoming request will be considered
|
|
NameIdMapping NullableString `json:"name_id_mapping,omitempty"`
|
|
// Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
|
|
AuthnContextClassRefMapping NullableString `json:"authn_context_class_ref_mapping,omitempty"`
|
|
DigestAlgorithm *DigestAlgorithmEnum `json:"digest_algorithm,omitempty"`
|
|
SignatureAlgorithm *SignatureAlgorithmEnum `json:"signature_algorithm,omitempty"`
|
|
// Keypair used to sign outgoing Responses going to the Service Provider.
|
|
SigningKp NullableString `json:"signing_kp,omitempty"`
|
|
// When selected, incoming assertion's Signatures will be validated against this certificate. To allow unsigned Requests, leave on default.
|
|
VerificationKp NullableString `json:"verification_kp,omitempty"`
|
|
// When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
|
|
EncryptionKp NullableString `json:"encryption_kp,omitempty"`
|
|
SignAssertion *bool `json:"sign_assertion,omitempty"`
|
|
SignResponse *bool `json:"sign_response,omitempty"`
|
|
SignLogoutRequest *bool `json:"sign_logout_request,omitempty"`
|
|
SignLogoutResponse *bool `json:"sign_logout_response,omitempty"`
|
|
// This determines how authentik sends the response back to the Service Provider.
|
|
SpBinding *SAMLBindingsEnum `json:"sp_binding,omitempty"`
|
|
// This determines how authentik sends the logout response back to the Service Provider.
|
|
SlsBinding *SAMLBindingsEnum `json:"sls_binding,omitempty"`
|
|
// Method to use for logout. Front-channel iframe loads all logout URLs simultaneously in hidden iframes. Front-channel native uses your active browser tab to send post requests and redirect to providers. Back-channel sends logout requests directly from the server without user interaction (requires POST SLS binding).
|
|
LogoutMethod *SAMLLogoutMethods `json:"logout_method,omitempty"`
|
|
// Default relay_state value for IDP-initiated logins
|
|
DefaultRelayState *string `json:"default_relay_state,omitempty"`
|
|
DefaultNameIdPolicy *SAMLNameIDPolicyEnum `json:"default_name_id_policy,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _SAMLProviderRequest SAMLProviderRequest
|
|
|
|
// NewSAMLProviderRequest instantiates a new SAMLProviderRequest object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewSAMLProviderRequest(name string, authorizationFlow string, invalidationFlow string, acsUrl string) *SAMLProviderRequest {
|
|
this := SAMLProviderRequest{}
|
|
this.Name = name
|
|
this.AuthorizationFlow = authorizationFlow
|
|
this.InvalidationFlow = invalidationFlow
|
|
this.AcsUrl = acsUrl
|
|
return &this
|
|
}
|
|
|
|
// NewSAMLProviderRequestWithDefaults instantiates a new SAMLProviderRequest object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewSAMLProviderRequestWithDefaults() *SAMLProviderRequest {
|
|
this := SAMLProviderRequest{}
|
|
return &this
|
|
}
|
|
|
|
// GetName returns the Name field value
|
|
func (o *SAMLProviderRequest) GetName() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetNameOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.Name, true
|
|
}
|
|
|
|
// SetName sets field value
|
|
func (o *SAMLProviderRequest) SetName(v string) {
|
|
o.Name = v
|
|
}
|
|
|
|
// GetAuthenticationFlow returns the AuthenticationFlow field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLProviderRequest) GetAuthenticationFlow() string {
|
|
if o == nil || IsNil(o.AuthenticationFlow.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AuthenticationFlow.Get()
|
|
}
|
|
|
|
// GetAuthenticationFlowOk returns a tuple with the AuthenticationFlow field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLProviderRequest) GetAuthenticationFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.AuthenticationFlow.Get(), o.AuthenticationFlow.IsSet()
|
|
}
|
|
|
|
// HasAuthenticationFlow returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasAuthenticationFlow() bool {
|
|
if o != nil && o.AuthenticationFlow.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthenticationFlow gets a reference to the given NullableString and assigns it to the AuthenticationFlow field.
|
|
func (o *SAMLProviderRequest) SetAuthenticationFlow(v string) {
|
|
o.AuthenticationFlow.Set(&v)
|
|
}
|
|
|
|
// SetAuthenticationFlowNil sets the value for AuthenticationFlow to be an explicit nil
|
|
func (o *SAMLProviderRequest) SetAuthenticationFlowNil() {
|
|
o.AuthenticationFlow.Set(nil)
|
|
}
|
|
|
|
// UnsetAuthenticationFlow ensures that no value is present for AuthenticationFlow, not even an explicit nil
|
|
func (o *SAMLProviderRequest) UnsetAuthenticationFlow() {
|
|
o.AuthenticationFlow.Unset()
|
|
}
|
|
|
|
// GetAuthorizationFlow returns the AuthorizationFlow field value
|
|
func (o *SAMLProviderRequest) GetAuthorizationFlow() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.AuthorizationFlow
|
|
}
|
|
|
|
// GetAuthorizationFlowOk returns a tuple with the AuthorizationFlow field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetAuthorizationFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.AuthorizationFlow, true
|
|
}
|
|
|
|
// SetAuthorizationFlow sets field value
|
|
func (o *SAMLProviderRequest) SetAuthorizationFlow(v string) {
|
|
o.AuthorizationFlow = v
|
|
}
|
|
|
|
// GetInvalidationFlow returns the InvalidationFlow field value
|
|
func (o *SAMLProviderRequest) GetInvalidationFlow() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.InvalidationFlow
|
|
}
|
|
|
|
// GetInvalidationFlowOk returns a tuple with the InvalidationFlow field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetInvalidationFlowOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.InvalidationFlow, true
|
|
}
|
|
|
|
// SetInvalidationFlow sets field value
|
|
func (o *SAMLProviderRequest) SetInvalidationFlow(v string) {
|
|
o.InvalidationFlow = v
|
|
}
|
|
|
|
// GetPropertyMappings returns the PropertyMappings field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetPropertyMappings() []string {
|
|
if o == nil || IsNil(o.PropertyMappings) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.PropertyMappings
|
|
}
|
|
|
|
// GetPropertyMappingsOk returns a tuple with the PropertyMappings field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetPropertyMappingsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.PropertyMappings) {
|
|
return nil, false
|
|
}
|
|
return o.PropertyMappings, true
|
|
}
|
|
|
|
// HasPropertyMappings returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasPropertyMappings() bool {
|
|
if o != nil && !IsNil(o.PropertyMappings) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPropertyMappings gets a reference to the given []string and assigns it to the PropertyMappings field.
|
|
func (o *SAMLProviderRequest) SetPropertyMappings(v []string) {
|
|
o.PropertyMappings = v
|
|
}
|
|
|
|
// GetAcsUrl returns the AcsUrl field value
|
|
func (o *SAMLProviderRequest) GetAcsUrl() string {
|
|
if o == nil {
|
|
var ret string
|
|
return ret
|
|
}
|
|
|
|
return o.AcsUrl
|
|
}
|
|
|
|
// GetAcsUrlOk returns a tuple with the AcsUrl field value
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetAcsUrlOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return &o.AcsUrl, true
|
|
}
|
|
|
|
// SetAcsUrl sets field value
|
|
func (o *SAMLProviderRequest) SetAcsUrl(v string) {
|
|
o.AcsUrl = v
|
|
}
|
|
|
|
// GetSlsUrl returns the SlsUrl field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSlsUrl() string {
|
|
if o == nil || IsNil(o.SlsUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SlsUrl
|
|
}
|
|
|
|
// GetSlsUrlOk returns a tuple with the SlsUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSlsUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SlsUrl) {
|
|
return nil, false
|
|
}
|
|
return o.SlsUrl, true
|
|
}
|
|
|
|
// HasSlsUrl returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSlsUrl() bool {
|
|
if o != nil && !IsNil(o.SlsUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSlsUrl gets a reference to the given string and assigns it to the SlsUrl field.
|
|
func (o *SAMLProviderRequest) SetSlsUrl(v string) {
|
|
o.SlsUrl = &v
|
|
}
|
|
|
|
// GetAudience returns the Audience field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetAudience() string {
|
|
if o == nil || IsNil(o.Audience) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Audience
|
|
}
|
|
|
|
// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetAudienceOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Audience) {
|
|
return nil, false
|
|
}
|
|
return o.Audience, true
|
|
}
|
|
|
|
// HasAudience returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasAudience() bool {
|
|
if o != nil && !IsNil(o.Audience) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAudience gets a reference to the given string and assigns it to the Audience field.
|
|
func (o *SAMLProviderRequest) SetAudience(v string) {
|
|
o.Audience = &v
|
|
}
|
|
|
|
// GetIssuer returns the Issuer field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetIssuer() string {
|
|
if o == nil || IsNil(o.Issuer) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Issuer
|
|
}
|
|
|
|
// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetIssuerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Issuer) {
|
|
return nil, false
|
|
}
|
|
return o.Issuer, true
|
|
}
|
|
|
|
// HasIssuer returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasIssuer() bool {
|
|
if o != nil && !IsNil(o.Issuer) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIssuer gets a reference to the given string and assigns it to the Issuer field.
|
|
func (o *SAMLProviderRequest) SetIssuer(v string) {
|
|
o.Issuer = &v
|
|
}
|
|
|
|
// GetAssertionValidNotBefore returns the AssertionValidNotBefore field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetAssertionValidNotBefore() string {
|
|
if o == nil || IsNil(o.AssertionValidNotBefore) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AssertionValidNotBefore
|
|
}
|
|
|
|
// GetAssertionValidNotBeforeOk returns a tuple with the AssertionValidNotBefore field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetAssertionValidNotBeforeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AssertionValidNotBefore) {
|
|
return nil, false
|
|
}
|
|
return o.AssertionValidNotBefore, true
|
|
}
|
|
|
|
// HasAssertionValidNotBefore returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasAssertionValidNotBefore() bool {
|
|
if o != nil && !IsNil(o.AssertionValidNotBefore) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAssertionValidNotBefore gets a reference to the given string and assigns it to the AssertionValidNotBefore field.
|
|
func (o *SAMLProviderRequest) SetAssertionValidNotBefore(v string) {
|
|
o.AssertionValidNotBefore = &v
|
|
}
|
|
|
|
// GetAssertionValidNotOnOrAfter returns the AssertionValidNotOnOrAfter field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetAssertionValidNotOnOrAfter() string {
|
|
if o == nil || IsNil(o.AssertionValidNotOnOrAfter) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AssertionValidNotOnOrAfter
|
|
}
|
|
|
|
// GetAssertionValidNotOnOrAfterOk returns a tuple with the AssertionValidNotOnOrAfter field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetAssertionValidNotOnOrAfterOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AssertionValidNotOnOrAfter) {
|
|
return nil, false
|
|
}
|
|
return o.AssertionValidNotOnOrAfter, true
|
|
}
|
|
|
|
// HasAssertionValidNotOnOrAfter returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasAssertionValidNotOnOrAfter() bool {
|
|
if o != nil && !IsNil(o.AssertionValidNotOnOrAfter) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAssertionValidNotOnOrAfter gets a reference to the given string and assigns it to the AssertionValidNotOnOrAfter field.
|
|
func (o *SAMLProviderRequest) SetAssertionValidNotOnOrAfter(v string) {
|
|
o.AssertionValidNotOnOrAfter = &v
|
|
}
|
|
|
|
// GetSessionValidNotOnOrAfter returns the SessionValidNotOnOrAfter field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSessionValidNotOnOrAfter() string {
|
|
if o == nil || IsNil(o.SessionValidNotOnOrAfter) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SessionValidNotOnOrAfter
|
|
}
|
|
|
|
// GetSessionValidNotOnOrAfterOk returns a tuple with the SessionValidNotOnOrAfter field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSessionValidNotOnOrAfterOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SessionValidNotOnOrAfter) {
|
|
return nil, false
|
|
}
|
|
return o.SessionValidNotOnOrAfter, true
|
|
}
|
|
|
|
// HasSessionValidNotOnOrAfter returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSessionValidNotOnOrAfter() bool {
|
|
if o != nil && !IsNil(o.SessionValidNotOnOrAfter) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSessionValidNotOnOrAfter gets a reference to the given string and assigns it to the SessionValidNotOnOrAfter field.
|
|
func (o *SAMLProviderRequest) SetSessionValidNotOnOrAfter(v string) {
|
|
o.SessionValidNotOnOrAfter = &v
|
|
}
|
|
|
|
// GetNameIdMapping returns the NameIdMapping field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLProviderRequest) GetNameIdMapping() string {
|
|
if o == nil || IsNil(o.NameIdMapping.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.NameIdMapping.Get()
|
|
}
|
|
|
|
// GetNameIdMappingOk returns a tuple with the NameIdMapping field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLProviderRequest) GetNameIdMappingOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.NameIdMapping.Get(), o.NameIdMapping.IsSet()
|
|
}
|
|
|
|
// HasNameIdMapping returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasNameIdMapping() bool {
|
|
if o != nil && o.NameIdMapping.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNameIdMapping gets a reference to the given NullableString and assigns it to the NameIdMapping field.
|
|
func (o *SAMLProviderRequest) SetNameIdMapping(v string) {
|
|
o.NameIdMapping.Set(&v)
|
|
}
|
|
|
|
// SetNameIdMappingNil sets the value for NameIdMapping to be an explicit nil
|
|
func (o *SAMLProviderRequest) SetNameIdMappingNil() {
|
|
o.NameIdMapping.Set(nil)
|
|
}
|
|
|
|
// UnsetNameIdMapping ensures that no value is present for NameIdMapping, not even an explicit nil
|
|
func (o *SAMLProviderRequest) UnsetNameIdMapping() {
|
|
o.NameIdMapping.Unset()
|
|
}
|
|
|
|
// GetAuthnContextClassRefMapping returns the AuthnContextClassRefMapping field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLProviderRequest) GetAuthnContextClassRefMapping() string {
|
|
if o == nil || IsNil(o.AuthnContextClassRefMapping.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AuthnContextClassRefMapping.Get()
|
|
}
|
|
|
|
// GetAuthnContextClassRefMappingOk returns a tuple with the AuthnContextClassRefMapping field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLProviderRequest) GetAuthnContextClassRefMappingOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.AuthnContextClassRefMapping.Get(), o.AuthnContextClassRefMapping.IsSet()
|
|
}
|
|
|
|
// HasAuthnContextClassRefMapping returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasAuthnContextClassRefMapping() bool {
|
|
if o != nil && o.AuthnContextClassRefMapping.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthnContextClassRefMapping gets a reference to the given NullableString and assigns it to the AuthnContextClassRefMapping field.
|
|
func (o *SAMLProviderRequest) SetAuthnContextClassRefMapping(v string) {
|
|
o.AuthnContextClassRefMapping.Set(&v)
|
|
}
|
|
|
|
// SetAuthnContextClassRefMappingNil sets the value for AuthnContextClassRefMapping to be an explicit nil
|
|
func (o *SAMLProviderRequest) SetAuthnContextClassRefMappingNil() {
|
|
o.AuthnContextClassRefMapping.Set(nil)
|
|
}
|
|
|
|
// UnsetAuthnContextClassRefMapping ensures that no value is present for AuthnContextClassRefMapping, not even an explicit nil
|
|
func (o *SAMLProviderRequest) UnsetAuthnContextClassRefMapping() {
|
|
o.AuthnContextClassRefMapping.Unset()
|
|
}
|
|
|
|
// GetDigestAlgorithm returns the DigestAlgorithm field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetDigestAlgorithm() DigestAlgorithmEnum {
|
|
if o == nil || IsNil(o.DigestAlgorithm) {
|
|
var ret DigestAlgorithmEnum
|
|
return ret
|
|
}
|
|
return *o.DigestAlgorithm
|
|
}
|
|
|
|
// GetDigestAlgorithmOk returns a tuple with the DigestAlgorithm field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetDigestAlgorithmOk() (*DigestAlgorithmEnum, bool) {
|
|
if o == nil || IsNil(o.DigestAlgorithm) {
|
|
return nil, false
|
|
}
|
|
return o.DigestAlgorithm, true
|
|
}
|
|
|
|
// HasDigestAlgorithm returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasDigestAlgorithm() bool {
|
|
if o != nil && !IsNil(o.DigestAlgorithm) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDigestAlgorithm gets a reference to the given DigestAlgorithmEnum and assigns it to the DigestAlgorithm field.
|
|
func (o *SAMLProviderRequest) SetDigestAlgorithm(v DigestAlgorithmEnum) {
|
|
o.DigestAlgorithm = &v
|
|
}
|
|
|
|
// GetSignatureAlgorithm returns the SignatureAlgorithm field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSignatureAlgorithm() SignatureAlgorithmEnum {
|
|
if o == nil || IsNil(o.SignatureAlgorithm) {
|
|
var ret SignatureAlgorithmEnum
|
|
return ret
|
|
}
|
|
return *o.SignatureAlgorithm
|
|
}
|
|
|
|
// GetSignatureAlgorithmOk returns a tuple with the SignatureAlgorithm field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSignatureAlgorithmOk() (*SignatureAlgorithmEnum, bool) {
|
|
if o == nil || IsNil(o.SignatureAlgorithm) {
|
|
return nil, false
|
|
}
|
|
return o.SignatureAlgorithm, true
|
|
}
|
|
|
|
// HasSignatureAlgorithm returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSignatureAlgorithm() bool {
|
|
if o != nil && !IsNil(o.SignatureAlgorithm) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignatureAlgorithm gets a reference to the given SignatureAlgorithmEnum and assigns it to the SignatureAlgorithm field.
|
|
func (o *SAMLProviderRequest) SetSignatureAlgorithm(v SignatureAlgorithmEnum) {
|
|
o.SignatureAlgorithm = &v
|
|
}
|
|
|
|
// GetSigningKp returns the SigningKp field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLProviderRequest) GetSigningKp() string {
|
|
if o == nil || IsNil(o.SigningKp.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SigningKp.Get()
|
|
}
|
|
|
|
// GetSigningKpOk returns a tuple with the SigningKp field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLProviderRequest) GetSigningKpOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.SigningKp.Get(), o.SigningKp.IsSet()
|
|
}
|
|
|
|
// HasSigningKp returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSigningKp() bool {
|
|
if o != nil && o.SigningKp.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSigningKp gets a reference to the given NullableString and assigns it to the SigningKp field.
|
|
func (o *SAMLProviderRequest) SetSigningKp(v string) {
|
|
o.SigningKp.Set(&v)
|
|
}
|
|
|
|
// SetSigningKpNil sets the value for SigningKp to be an explicit nil
|
|
func (o *SAMLProviderRequest) SetSigningKpNil() {
|
|
o.SigningKp.Set(nil)
|
|
}
|
|
|
|
// UnsetSigningKp ensures that no value is present for SigningKp, not even an explicit nil
|
|
func (o *SAMLProviderRequest) UnsetSigningKp() {
|
|
o.SigningKp.Unset()
|
|
}
|
|
|
|
// GetVerificationKp returns the VerificationKp field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLProviderRequest) GetVerificationKp() string {
|
|
if o == nil || IsNil(o.VerificationKp.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.VerificationKp.Get()
|
|
}
|
|
|
|
// GetVerificationKpOk returns a tuple with the VerificationKp field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLProviderRequest) GetVerificationKpOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.VerificationKp.Get(), o.VerificationKp.IsSet()
|
|
}
|
|
|
|
// HasVerificationKp returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasVerificationKp() bool {
|
|
if o != nil && o.VerificationKp.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVerificationKp gets a reference to the given NullableString and assigns it to the VerificationKp field.
|
|
func (o *SAMLProviderRequest) SetVerificationKp(v string) {
|
|
o.VerificationKp.Set(&v)
|
|
}
|
|
|
|
// SetVerificationKpNil sets the value for VerificationKp to be an explicit nil
|
|
func (o *SAMLProviderRequest) SetVerificationKpNil() {
|
|
o.VerificationKp.Set(nil)
|
|
}
|
|
|
|
// UnsetVerificationKp ensures that no value is present for VerificationKp, not even an explicit nil
|
|
func (o *SAMLProviderRequest) UnsetVerificationKp() {
|
|
o.VerificationKp.Unset()
|
|
}
|
|
|
|
// GetEncryptionKp returns the EncryptionKp field value if set, zero value otherwise (both if not set or set to explicit null).
|
|
func (o *SAMLProviderRequest) GetEncryptionKp() string {
|
|
if o == nil || IsNil(o.EncryptionKp.Get()) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EncryptionKp.Get()
|
|
}
|
|
|
|
// GetEncryptionKpOk returns a tuple with the EncryptionKp field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
// NOTE: If the value is an explicit nil, `nil, true` will be returned
|
|
func (o *SAMLProviderRequest) GetEncryptionKpOk() (*string, bool) {
|
|
if o == nil {
|
|
return nil, false
|
|
}
|
|
return o.EncryptionKp.Get(), o.EncryptionKp.IsSet()
|
|
}
|
|
|
|
// HasEncryptionKp returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasEncryptionKp() bool {
|
|
if o != nil && o.EncryptionKp.IsSet() {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEncryptionKp gets a reference to the given NullableString and assigns it to the EncryptionKp field.
|
|
func (o *SAMLProviderRequest) SetEncryptionKp(v string) {
|
|
o.EncryptionKp.Set(&v)
|
|
}
|
|
|
|
// SetEncryptionKpNil sets the value for EncryptionKp to be an explicit nil
|
|
func (o *SAMLProviderRequest) SetEncryptionKpNil() {
|
|
o.EncryptionKp.Set(nil)
|
|
}
|
|
|
|
// UnsetEncryptionKp ensures that no value is present for EncryptionKp, not even an explicit nil
|
|
func (o *SAMLProviderRequest) UnsetEncryptionKp() {
|
|
o.EncryptionKp.Unset()
|
|
}
|
|
|
|
// GetSignAssertion returns the SignAssertion field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSignAssertion() bool {
|
|
if o == nil || IsNil(o.SignAssertion) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SignAssertion
|
|
}
|
|
|
|
// GetSignAssertionOk returns a tuple with the SignAssertion field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSignAssertionOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SignAssertion) {
|
|
return nil, false
|
|
}
|
|
return o.SignAssertion, true
|
|
}
|
|
|
|
// HasSignAssertion returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSignAssertion() bool {
|
|
if o != nil && !IsNil(o.SignAssertion) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignAssertion gets a reference to the given bool and assigns it to the SignAssertion field.
|
|
func (o *SAMLProviderRequest) SetSignAssertion(v bool) {
|
|
o.SignAssertion = &v
|
|
}
|
|
|
|
// GetSignResponse returns the SignResponse field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSignResponse() bool {
|
|
if o == nil || IsNil(o.SignResponse) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SignResponse
|
|
}
|
|
|
|
// GetSignResponseOk returns a tuple with the SignResponse field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSignResponseOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SignResponse) {
|
|
return nil, false
|
|
}
|
|
return o.SignResponse, true
|
|
}
|
|
|
|
// HasSignResponse returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSignResponse() bool {
|
|
if o != nil && !IsNil(o.SignResponse) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignResponse gets a reference to the given bool and assigns it to the SignResponse field.
|
|
func (o *SAMLProviderRequest) SetSignResponse(v bool) {
|
|
o.SignResponse = &v
|
|
}
|
|
|
|
// GetSignLogoutRequest returns the SignLogoutRequest field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSignLogoutRequest() bool {
|
|
if o == nil || IsNil(o.SignLogoutRequest) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SignLogoutRequest
|
|
}
|
|
|
|
// GetSignLogoutRequestOk returns a tuple with the SignLogoutRequest field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSignLogoutRequestOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SignLogoutRequest) {
|
|
return nil, false
|
|
}
|
|
return o.SignLogoutRequest, true
|
|
}
|
|
|
|
// HasSignLogoutRequest returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSignLogoutRequest() bool {
|
|
if o != nil && !IsNil(o.SignLogoutRequest) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignLogoutRequest gets a reference to the given bool and assigns it to the SignLogoutRequest field.
|
|
func (o *SAMLProviderRequest) SetSignLogoutRequest(v bool) {
|
|
o.SignLogoutRequest = &v
|
|
}
|
|
|
|
// GetSignLogoutResponse returns the SignLogoutResponse field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSignLogoutResponse() bool {
|
|
if o == nil || IsNil(o.SignLogoutResponse) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.SignLogoutResponse
|
|
}
|
|
|
|
// GetSignLogoutResponseOk returns a tuple with the SignLogoutResponse field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSignLogoutResponseOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.SignLogoutResponse) {
|
|
return nil, false
|
|
}
|
|
return o.SignLogoutResponse, true
|
|
}
|
|
|
|
// HasSignLogoutResponse returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSignLogoutResponse() bool {
|
|
if o != nil && !IsNil(o.SignLogoutResponse) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSignLogoutResponse gets a reference to the given bool and assigns it to the SignLogoutResponse field.
|
|
func (o *SAMLProviderRequest) SetSignLogoutResponse(v bool) {
|
|
o.SignLogoutResponse = &v
|
|
}
|
|
|
|
// GetSpBinding returns the SpBinding field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSpBinding() SAMLBindingsEnum {
|
|
if o == nil || IsNil(o.SpBinding) {
|
|
var ret SAMLBindingsEnum
|
|
return ret
|
|
}
|
|
return *o.SpBinding
|
|
}
|
|
|
|
// GetSpBindingOk returns a tuple with the SpBinding field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSpBindingOk() (*SAMLBindingsEnum, bool) {
|
|
if o == nil || IsNil(o.SpBinding) {
|
|
return nil, false
|
|
}
|
|
return o.SpBinding, true
|
|
}
|
|
|
|
// HasSpBinding returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSpBinding() bool {
|
|
if o != nil && !IsNil(o.SpBinding) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSpBinding gets a reference to the given SAMLBindingsEnum and assigns it to the SpBinding field.
|
|
func (o *SAMLProviderRequest) SetSpBinding(v SAMLBindingsEnum) {
|
|
o.SpBinding = &v
|
|
}
|
|
|
|
// GetSlsBinding returns the SlsBinding field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetSlsBinding() SAMLBindingsEnum {
|
|
if o == nil || IsNil(o.SlsBinding) {
|
|
var ret SAMLBindingsEnum
|
|
return ret
|
|
}
|
|
return *o.SlsBinding
|
|
}
|
|
|
|
// GetSlsBindingOk returns a tuple with the SlsBinding field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetSlsBindingOk() (*SAMLBindingsEnum, bool) {
|
|
if o == nil || IsNil(o.SlsBinding) {
|
|
return nil, false
|
|
}
|
|
return o.SlsBinding, true
|
|
}
|
|
|
|
// HasSlsBinding returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasSlsBinding() bool {
|
|
if o != nil && !IsNil(o.SlsBinding) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSlsBinding gets a reference to the given SAMLBindingsEnum and assigns it to the SlsBinding field.
|
|
func (o *SAMLProviderRequest) SetSlsBinding(v SAMLBindingsEnum) {
|
|
o.SlsBinding = &v
|
|
}
|
|
|
|
// GetLogoutMethod returns the LogoutMethod field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetLogoutMethod() SAMLLogoutMethods {
|
|
if o == nil || IsNil(o.LogoutMethod) {
|
|
var ret SAMLLogoutMethods
|
|
return ret
|
|
}
|
|
return *o.LogoutMethod
|
|
}
|
|
|
|
// GetLogoutMethodOk returns a tuple with the LogoutMethod field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetLogoutMethodOk() (*SAMLLogoutMethods, bool) {
|
|
if o == nil || IsNil(o.LogoutMethod) {
|
|
return nil, false
|
|
}
|
|
return o.LogoutMethod, true
|
|
}
|
|
|
|
// HasLogoutMethod returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasLogoutMethod() bool {
|
|
if o != nil && !IsNil(o.LogoutMethod) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLogoutMethod gets a reference to the given SAMLLogoutMethods and assigns it to the LogoutMethod field.
|
|
func (o *SAMLProviderRequest) SetLogoutMethod(v SAMLLogoutMethods) {
|
|
o.LogoutMethod = &v
|
|
}
|
|
|
|
// GetDefaultRelayState returns the DefaultRelayState field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetDefaultRelayState() string {
|
|
if o == nil || IsNil(o.DefaultRelayState) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DefaultRelayState
|
|
}
|
|
|
|
// GetDefaultRelayStateOk returns a tuple with the DefaultRelayState field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetDefaultRelayStateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DefaultRelayState) {
|
|
return nil, false
|
|
}
|
|
return o.DefaultRelayState, true
|
|
}
|
|
|
|
// HasDefaultRelayState returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasDefaultRelayState() bool {
|
|
if o != nil && !IsNil(o.DefaultRelayState) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDefaultRelayState gets a reference to the given string and assigns it to the DefaultRelayState field.
|
|
func (o *SAMLProviderRequest) SetDefaultRelayState(v string) {
|
|
o.DefaultRelayState = &v
|
|
}
|
|
|
|
// GetDefaultNameIdPolicy returns the DefaultNameIdPolicy field value if set, zero value otherwise.
|
|
func (o *SAMLProviderRequest) GetDefaultNameIdPolicy() SAMLNameIDPolicyEnum {
|
|
if o == nil || IsNil(o.DefaultNameIdPolicy) {
|
|
var ret SAMLNameIDPolicyEnum
|
|
return ret
|
|
}
|
|
return *o.DefaultNameIdPolicy
|
|
}
|
|
|
|
// GetDefaultNameIdPolicyOk returns a tuple with the DefaultNameIdPolicy field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SAMLProviderRequest) GetDefaultNameIdPolicyOk() (*SAMLNameIDPolicyEnum, bool) {
|
|
if o == nil || IsNil(o.DefaultNameIdPolicy) {
|
|
return nil, false
|
|
}
|
|
return o.DefaultNameIdPolicy, true
|
|
}
|
|
|
|
// HasDefaultNameIdPolicy returns a boolean if a field has been set.
|
|
func (o *SAMLProviderRequest) HasDefaultNameIdPolicy() bool {
|
|
if o != nil && !IsNil(o.DefaultNameIdPolicy) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDefaultNameIdPolicy gets a reference to the given SAMLNameIDPolicyEnum and assigns it to the DefaultNameIdPolicy field.
|
|
func (o *SAMLProviderRequest) SetDefaultNameIdPolicy(v SAMLNameIDPolicyEnum) {
|
|
o.DefaultNameIdPolicy = &v
|
|
}
|
|
|
|
func (o SAMLProviderRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SAMLProviderRequest) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
toSerialize["name"] = o.Name
|
|
if o.AuthenticationFlow.IsSet() {
|
|
toSerialize["authentication_flow"] = o.AuthenticationFlow.Get()
|
|
}
|
|
toSerialize["authorization_flow"] = o.AuthorizationFlow
|
|
toSerialize["invalidation_flow"] = o.InvalidationFlow
|
|
if !IsNil(o.PropertyMappings) {
|
|
toSerialize["property_mappings"] = o.PropertyMappings
|
|
}
|
|
toSerialize["acs_url"] = o.AcsUrl
|
|
if !IsNil(o.SlsUrl) {
|
|
toSerialize["sls_url"] = o.SlsUrl
|
|
}
|
|
if !IsNil(o.Audience) {
|
|
toSerialize["audience"] = o.Audience
|
|
}
|
|
if !IsNil(o.Issuer) {
|
|
toSerialize["issuer"] = o.Issuer
|
|
}
|
|
if !IsNil(o.AssertionValidNotBefore) {
|
|
toSerialize["assertion_valid_not_before"] = o.AssertionValidNotBefore
|
|
}
|
|
if !IsNil(o.AssertionValidNotOnOrAfter) {
|
|
toSerialize["assertion_valid_not_on_or_after"] = o.AssertionValidNotOnOrAfter
|
|
}
|
|
if !IsNil(o.SessionValidNotOnOrAfter) {
|
|
toSerialize["session_valid_not_on_or_after"] = o.SessionValidNotOnOrAfter
|
|
}
|
|
if o.NameIdMapping.IsSet() {
|
|
toSerialize["name_id_mapping"] = o.NameIdMapping.Get()
|
|
}
|
|
if o.AuthnContextClassRefMapping.IsSet() {
|
|
toSerialize["authn_context_class_ref_mapping"] = o.AuthnContextClassRefMapping.Get()
|
|
}
|
|
if !IsNil(o.DigestAlgorithm) {
|
|
toSerialize["digest_algorithm"] = o.DigestAlgorithm
|
|
}
|
|
if !IsNil(o.SignatureAlgorithm) {
|
|
toSerialize["signature_algorithm"] = o.SignatureAlgorithm
|
|
}
|
|
if o.SigningKp.IsSet() {
|
|
toSerialize["signing_kp"] = o.SigningKp.Get()
|
|
}
|
|
if o.VerificationKp.IsSet() {
|
|
toSerialize["verification_kp"] = o.VerificationKp.Get()
|
|
}
|
|
if o.EncryptionKp.IsSet() {
|
|
toSerialize["encryption_kp"] = o.EncryptionKp.Get()
|
|
}
|
|
if !IsNil(o.SignAssertion) {
|
|
toSerialize["sign_assertion"] = o.SignAssertion
|
|
}
|
|
if !IsNil(o.SignResponse) {
|
|
toSerialize["sign_response"] = o.SignResponse
|
|
}
|
|
if !IsNil(o.SignLogoutRequest) {
|
|
toSerialize["sign_logout_request"] = o.SignLogoutRequest
|
|
}
|
|
if !IsNil(o.SignLogoutResponse) {
|
|
toSerialize["sign_logout_response"] = o.SignLogoutResponse
|
|
}
|
|
if !IsNil(o.SpBinding) {
|
|
toSerialize["sp_binding"] = o.SpBinding
|
|
}
|
|
if !IsNil(o.SlsBinding) {
|
|
toSerialize["sls_binding"] = o.SlsBinding
|
|
}
|
|
if !IsNil(o.LogoutMethod) {
|
|
toSerialize["logout_method"] = o.LogoutMethod
|
|
}
|
|
if !IsNil(o.DefaultRelayState) {
|
|
toSerialize["default_relay_state"] = o.DefaultRelayState
|
|
}
|
|
if !IsNil(o.DefaultNameIdPolicy) {
|
|
toSerialize["default_name_id_policy"] = o.DefaultNameIdPolicy
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *SAMLProviderRequest) UnmarshalJSON(data []byte) (err error) {
|
|
// This validates that all required properties are included in the JSON object
|
|
// by unmarshalling the object into a generic map with string keys and checking
|
|
// that every required field exists as a key in the generic map.
|
|
requiredProperties := []string{
|
|
"name",
|
|
"authorization_flow",
|
|
"invalidation_flow",
|
|
"acs_url",
|
|
}
|
|
|
|
allProperties := make(map[string]interface{})
|
|
|
|
err = json.Unmarshal(data, &allProperties)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
for _, requiredProperty := range requiredProperties {
|
|
if _, exists := allProperties[requiredProperty]; !exists {
|
|
return fmt.Errorf("no value given for required property %v", requiredProperty)
|
|
}
|
|
}
|
|
|
|
varSAMLProviderRequest := _SAMLProviderRequest{}
|
|
|
|
err = json.Unmarshal(data, &varSAMLProviderRequest)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = SAMLProviderRequest(varSAMLProviderRequest)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "authentication_flow")
|
|
delete(additionalProperties, "authorization_flow")
|
|
delete(additionalProperties, "invalidation_flow")
|
|
delete(additionalProperties, "property_mappings")
|
|
delete(additionalProperties, "acs_url")
|
|
delete(additionalProperties, "sls_url")
|
|
delete(additionalProperties, "audience")
|
|
delete(additionalProperties, "issuer")
|
|
delete(additionalProperties, "assertion_valid_not_before")
|
|
delete(additionalProperties, "assertion_valid_not_on_or_after")
|
|
delete(additionalProperties, "session_valid_not_on_or_after")
|
|
delete(additionalProperties, "name_id_mapping")
|
|
delete(additionalProperties, "authn_context_class_ref_mapping")
|
|
delete(additionalProperties, "digest_algorithm")
|
|
delete(additionalProperties, "signature_algorithm")
|
|
delete(additionalProperties, "signing_kp")
|
|
delete(additionalProperties, "verification_kp")
|
|
delete(additionalProperties, "encryption_kp")
|
|
delete(additionalProperties, "sign_assertion")
|
|
delete(additionalProperties, "sign_response")
|
|
delete(additionalProperties, "sign_logout_request")
|
|
delete(additionalProperties, "sign_logout_response")
|
|
delete(additionalProperties, "sp_binding")
|
|
delete(additionalProperties, "sls_binding")
|
|
delete(additionalProperties, "logout_method")
|
|
delete(additionalProperties, "default_relay_state")
|
|
delete(additionalProperties, "default_name_id_policy")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableSAMLProviderRequest struct {
|
|
value *SAMLProviderRequest
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSAMLProviderRequest) Get() *SAMLProviderRequest {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSAMLProviderRequest) Set(val *SAMLProviderRequest) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSAMLProviderRequest) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSAMLProviderRequest) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSAMLProviderRequest(val *SAMLProviderRequest) *NullableSAMLProviderRequest {
|
|
return &NullableSAMLProviderRequest{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSAMLProviderRequest) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSAMLProviderRequest) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|