AuthenticateOidcActionConfig.fromXml constructor
AuthenticateOidcActionConfig.fromXml(
- XmlElement elem
Implementation
factory AuthenticateOidcActionConfig.fromXml(_s.XmlElement elem) {
return AuthenticateOidcActionConfig(
authorizationEndpoint:
_s.extractXmlStringValue(elem, 'AuthorizationEndpoint')!,
clientId: _s.extractXmlStringValue(elem, 'ClientId')!,
issuer: _s.extractXmlStringValue(elem, 'Issuer')!,
tokenEndpoint: _s.extractXmlStringValue(elem, 'TokenEndpoint')!,
userInfoEndpoint: _s.extractXmlStringValue(elem, 'UserInfoEndpoint')!,
authenticationRequestExtraParams: Map.fromEntries(
elem
.getElement('AuthenticationRequestExtraParams')
?.findElements('entry')
.map(
(c) => MapEntry(
_s.extractXmlStringValue(c, 'key')!,
_s.extractXmlStringValue(c, 'value')!,
),
) ??
{},
),
clientSecret: _s.extractXmlStringValue(elem, 'ClientSecret'),
onUnauthenticatedRequest: _s
.extractXmlStringValue(elem, 'OnUnauthenticatedRequest')
?.toAuthenticateOidcActionConditionalBehaviorEnum(),
scope: _s.extractXmlStringValue(elem, 'Scope'),
sessionCookieName: _s.extractXmlStringValue(elem, 'SessionCookieName'),
sessionTimeout: _s.extractXmlIntValue(elem, 'SessionTimeout'),
useExistingClientSecret:
_s.extractXmlBoolValue(elem, 'UseExistingClientSecret'),
);
}