{{! Copyright 2016-2017 ForgeRock AS. All Rights Reserved Use of this code requires a commercial software license with ForgeRock AS. or with one of its affiliates. All use shall be exclusively subject to such license between the licensee and ForgeRock AS. }}

{{t "templates.auth.modules.basicProperties"}}

{{> form/_titaToggle property="enabled" label="templates.auth.modules.moduleEnabled" enabled=config.enabled}} {{#each config.properties.resolvers}} {{> form/_basicInput value=well-known label="templates.socialProviders.wellKnown" property="properties.resolvers[].well-known" default="https://openam.example.com/openam/oauth2/.well-known/openid-configuration" noValidation="true"}} {{> form/_basicInput value=client_id label="templates.socialProviders.clientId" property="properties.resolvers[].client_id" required="true" noValidation="true"}}
{{> form/_tagSelectize value=scope label="templates.socialProviders.scope" property="properties.resolvers[].scope" noValidation="true" helpKey="templates.socialProviders.scopeHelp" }} {{> form/_basicInput value=authorization_endpoint label="templates.socialProviders.authorizationEndpoint" property="properties.resolvers[].authorization_endpoint" noValidation="true"}} {{> form/_basicInput value=token_endpoint label="templates.socialProviders.tokenEndpoint" property="properties.resolvers[].token_endpoint" noValidation="true"}} {{> form/_basicInput value=end_session_endpoint label="templates.socialProviders.endSessionEndpoint" property="properties.resolvers[].end_session_endpoint" noValidation="true"}}
{{/each}} {{> form/_basicSelect property="properties.queryOnResource" label="templates.auth.modules.queryOnResource" options=resources value=config.properties.queryOnResource}} {{> form/_tagSelectize value=config.properties.defaultUserRoles label="templates.auth.modules.defaultUserRole" property="properties.defaultUserRoles" options=defaultUserRoles default="openidm-authorized"}}
{{> authentication/_propertyMapping hideUserCredential=true authenticationId="userName" userRoles="authzRoles"}}

{{t "templates.auth.modules.advancedProperties"}}

{{> form/_basicInput value=config.properties.queryId label="templates.auth.modules.queryId" property="properties.queryId" required="true" noValidation="true"}} {{> form/_basicInput value=config.properties.openIdConnectHeader label="templates.auth.modules.openIdConnectHeader" property="properties.openIdConnectHeader" default="authToken" noValidation="true"}} {{> authentication/_augmentSecurityContext}} {{> authentication/_customProperties}}