/* tslint:disable */
/* eslint-disable */
/**
* Sonatype Lifecycle Public REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.207.0-01
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
/**
* Enter the SAML configuration
- `identityProviderName` the name of the Identity Provider that is displayed on the login page when SAML is configured.
- `entityId` is the URI that IQ Server uses to identify itself in requests to the SSOservice.
- `firstNameAttribute` is the SAML attribute that IQ Server extracts from the login response of the identity provider and uses as the user's first name.
- `lastNameAttribute` is the SAML attribute that IQ Server extracts from the login response of the identity provider and uses as the user's last name.
- `emailAttributeName` is the SAML attribute that IQ Server extracts from the login response of the identity provider to determine the user's email address.
- `usernameAttributeName` is the SAML attribute that IQ Server extracts from the login response of the identity provider to determine the username or id.
- `groupAttributeName` is the SAML attribute that IQ Server extracts from the login response of the identity provider to determine the groups the user belongs to.
- `validateResponseSignature` indicates whether the SAML responses from the identity provider are cryptographically signed. A `null` value indicates that this setting is derived from the SAML metadata from the identity provider performing signature validation if a signing key (`KeyDescriptor`) is included.
- `validateAssertionSignature` indicates whether the SAML assertions from the identity provider are cryptographically signed. A `null` value indicates that this setting is derived from the SAML metadata from the identity provider performing signature validation if a signing key (`KeyDescriptor`) is included.
- `identityProviderMetadataXml` is the metadata of the identity provider.
* @export
* @interface ApiSamlConfigurationDTO
*/
export interface ApiSamlConfigurationDTO {
/**
*
* @type {string}
* @memberof ApiSamlConfigurationDTO
*/
emailAttributeName?: string;
/**
*
* @type {string}
* @memberof ApiSamlConfigurationDTO
*/
entityId?: string;
/**
*
* @type {string}
* @memberof ApiSamlConfigurationDTO
*/
firstNameAttributeName?: string;
/**
*
* @type {string}
* @memberof ApiSamlConfigurationDTO
*/
groupsAttributeName?: string;
/**
*
* @type {string}
* @memberof ApiSamlConfigurationDTO
*/
identityProviderName?: string;
/**
*
* @type {string}
* @memberof ApiSamlConfigurationDTO
*/
lastNameAttributeName?: string;
/**
*
* @type {string}
* @memberof ApiSamlConfigurationDTO
*/
usernameAttributeName?: string;
/**
*
* @type {boolean}
* @memberof ApiSamlConfigurationDTO
*/
validateAssertionSignature?: boolean;
/**
*
* @type {boolean}
* @memberof ApiSamlConfigurationDTO
*/
validateResponseSignature?: boolean;
}
/**
* Check if a given object implements the ApiSamlConfigurationDTO interface.
*/
export function instanceOfApiSamlConfigurationDTO(value: object): value is ApiSamlConfigurationDTO {
return true;
}
export function ApiSamlConfigurationDTOFromJSON(json: any): ApiSamlConfigurationDTO {
return ApiSamlConfigurationDTOFromJSONTyped(json, false);
}
export function ApiSamlConfigurationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiSamlConfigurationDTO {
if (json == null) {
return json;
}
return {
'emailAttributeName': json['emailAttributeName'] == null ? undefined : json['emailAttributeName'],
'entityId': json['entityId'] == null ? undefined : json['entityId'],
'firstNameAttributeName': json['firstNameAttributeName'] == null ? undefined : json['firstNameAttributeName'],
'groupsAttributeName': json['groupsAttributeName'] == null ? undefined : json['groupsAttributeName'],
'identityProviderName': json['identityProviderName'] == null ? undefined : json['identityProviderName'],
'lastNameAttributeName': json['lastNameAttributeName'] == null ? undefined : json['lastNameAttributeName'],
'usernameAttributeName': json['usernameAttributeName'] == null ? undefined : json['usernameAttributeName'],
'validateAssertionSignature': json['validateAssertionSignature'] == null ? undefined : json['validateAssertionSignature'],
'validateResponseSignature': json['validateResponseSignature'] == null ? undefined : json['validateResponseSignature'],
};
}
export function ApiSamlConfigurationDTOToJSON(json: any): ApiSamlConfigurationDTO {
return ApiSamlConfigurationDTOToJSONTyped(json, false);
}
export function ApiSamlConfigurationDTOToJSONTyped(value?: ApiSamlConfigurationDTO | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'emailAttributeName': value['emailAttributeName'],
'entityId': value['entityId'],
'firstNameAttributeName': value['firstNameAttributeName'],
'groupsAttributeName': value['groupsAttributeName'],
'identityProviderName': value['identityProviderName'],
'lastNameAttributeName': value['lastNameAttributeName'],
'usernameAttributeName': value['usernameAttributeName'],
'validateAssertionSignature': value['validateAssertionSignature'],
'validateResponseSignature': value['validateResponseSignature'],
};
}