AuthenticateCognitoActionConfig.fromXml constructor
AuthenticateCognitoActionConfig.fromXml(
- XmlElement elem
Implementation
factory AuthenticateCognitoActionConfig.fromXml(_s.XmlElement elem) {
return AuthenticateCognitoActionConfig(
userPoolArn: _s.extractXmlStringValue(elem, 'UserPoolArn')!,
userPoolClientId: _s.extractXmlStringValue(elem, 'UserPoolClientId')!,
userPoolDomain: _s.extractXmlStringValue(elem, 'UserPoolDomain')!,
authenticationRequestExtraParams: Map.fromEntries(
elem
.getElement('AuthenticationRequestExtraParams')
?.findElements('entry')
.map(
(c) => MapEntry(
_s.extractXmlStringValue(c, 'key')!,
_s.extractXmlStringValue(c, 'value')!,
),
) ??
{},
),
onUnauthenticatedRequest: _s
.extractXmlStringValue(elem, 'OnUnauthenticatedRequest')
?.toAuthenticateCognitoActionConditionalBehaviorEnum(),
scope: _s.extractXmlStringValue(elem, 'Scope'),
sessionCookieName: _s.extractXmlStringValue(elem, 'SessionCookieName'),
sessionTimeout: _s.extractXmlIntValue(elem, 'SessionTimeout'),
);
}