Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce password expiry time claim #6170

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,14 @@
<SupportedByDefault />
<multiValued>true</multiValued>
</Claim>
<Claim>
<ClaimURI>http://wso2.org/claims/identity/passwordExpiryTime</ClaimURI>
<DisplayName>Password Expiry Time</DisplayName>
<AttributeID>passwordExpiryTime</AttributeID>
<Description>Claim to dynamically calculate password expiry time of user</Description>
<ReadOnly>true</ReadOnly>
<Returned>request</Returned>
</Claim>
</Dialect>

<Dialect dialectURI="http://schemas.xmlsoap.org/ws/2005/05/identity">
Expand Down Expand Up @@ -2727,6 +2735,13 @@
<DisplayOrder>14</DisplayOrder>
<MappedLocalClaim>http://wso2.org/claims/verifiedMobileNumbers</MappedLocalClaim>
</Claim>
<Claim>
<ClaimURI>urn:scim:wso2:schema:passwordExpiryTime</ClaimURI>
<DisplayName>Password Expiry Time</DisplayName>
<AttributeID>passwordExpiryTime</AttributeID>
<Description>Password Expiry Time</Description>
<MappedLocalClaim>http://wso2.org/claims/identity/passwordExpiryTime</MappedLocalClaim>
</Claim>
</Dialect>
</Dialects>
</ClaimConfig>
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,9 @@
identity data store value is empty for corresponding claim. -->
<Property name="EnableHybridDataStore">false</Property>
</EventListener>
<EventListener type="org.wso2.carbon.user.core.listener.UserOperationEventListener"
name="org.wso2.carbon.identity.password.expiry.listener.PasswordExpiryEventListener"
orderId="102" enable="true"/>
<EventListener type="org.wso2.carbon.identity.core.handler.AbstractIdentityMessageHandler"
name="org.wso2.carbon.identity.data.publisher.application.authentication.AuthnDataPublisherProxy"
orderId="11" enable="true"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2161,6 +2161,11 @@
store value is empty for corresponding claim. -->
<Property name="EnableHybridDataStore">{{event.default_listener.governance_identity_store.enable_hybrid_data_store}}</Property>
</EventListener>
<EventListener id="password_expiry"
type="org.wso2.carbon.user.core.listener.UserOperationEventListener"
name="org.wso2.carbon.identity.password.expiry.listener.PasswordExpiryEventListener"
orderId="{{event.default_listener.password_expiry.priority}}"
enable="{{event.default_listener.password_expiry.enable}}"/>
<EventListener id="application_authentication"
type="org.wso2.carbon.identity.core.handler.AbstractIdentityMessageHandler"
name="org.wso2.carbon.identity.data.publisher.application.authentication.AuthnDataPublisherProxy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@
"event.default_listener.governance_identity_store.enable": true,
"event.default_listener.governance_identity_store.data_store": "org.wso2.carbon.identity.governance.store.JDBCIdentityDataStore",
"event.default_listener.governance_identity_store.enable_hybrid_data_store": false,
"event.default_listener.password_expiry.priority": "102",
"event.default_listener.password_expiry.enable": true,
"event.default_listener.application_authentication.priority": "11",
"event.default_listener.application_authentication.enable": true,
"event.default_listener.mutual_tls_authenticator.priority": "919",
Expand Down
Loading