<!--
  ~ Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. licenses this file to you under the Apache License,
  ~ Version 2.0 (the "License"); you may not use this file except
  ~ in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied.  See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  ~
  -->

<ClaimConfig>
    <Dialects>
        <Dialect dialectURI="http://wso2.org/claims">
            <Claim>
                <ClaimURI>http://wso2.org/claims/identity/preferredChannel</ClaimURI>
                <DisplayName>Preferred Channel</DisplayName>
                <!-- If user store based identity store is used, a proper mapped attribute
                in your user store must be configured for this. -->
                <AttributeID>preferredChannel</AttributeID>
                <Description>Preferred Notification Channel</Description>
            </Claim>
            <Claim>
                <ClaimURI>http://wso2.org/claims/identity/uuid</ClaimURI>
                <DisplayName>Unique User Id</DisplayName>
                <!-- If user store based identity store is used, a proper mapped attribute
                in your user store must be configured for this. -->
                <AttributeID>uuid</AttributeID>
                <Description>Claim to store the user's unique id. (UUID)</Description>
            </Claim>
            <Claim>
                <ClaimURI>http://wso2.org/claims/identity/failedLoginAttemptsBeforeSuccess</ClaimURI>
                <DisplayName>Failed Attempts Before Success</DisplayName>
                <!-- If user store based identity store is used, a proper mapped attribute
                in your user store must be configured for this. -->
                <AttributeID>failedLoginAttemptsBeforeSuccess</AttributeID>
                <Description>Failed Attempts Before Success</Description>
            </Claim>
            <Claim>
                <ClaimURI>http://wso2.org/claims/identity/emailaddress.pendingValue</ClaimURI>
                <DisplayName>Verification Pending Email</DisplayName>
                <!-- If user store based identity store is used, a proper mapped attribute
                in your user store must be configured for this. -->
                <AttributeID>pendingEmailAddress</AttributeID>
                <Description>Claim to store newly updated email address until the new email address is verified.</Description>
                <ReadOnly/>
            </Claim>
            <Claim>
                <ClaimURI>http://wso2.org/claims/identity/lastLoginTime</ClaimURI>
                <DisplayName>Last Login</DisplayName>
                <!-- Proper attribute Id in your user store must be configured for this -->
                <AttributeID>lastLoginTime</AttributeID>
                <Description>Last Login Time</Description>
            </Claim>
        </Dialect>
        <Dialect dialectURI="urn:ietf:params:scim:schemas:extension:enterprise:2.0:User">
            <Claim>
                <ClaimURI>urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:pendingEmails.value</ClaimURI>
                <DisplayName>Verification Pending Email</DisplayName>
                <AttributeID>pendingEmailAddress</AttributeID>
                <Description>Claim to store newly updated email address until the new email address is verified</Description>
                <Required />
                <DisplayOrder>1</DisplayOrder>
                <SupportedByDefault />
                <MappedLocalClaim>http://wso2.org/claims/identity/emailaddress.pendingValue</MappedLocalClaim>
            </Claim>
        </Dialect>
    </Dialects>
</ClaimConfig>
