-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding test for MID-9504: password notification for hashed password
- Loading branch information
Showing
3 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
model/model-intest/src/test/resources/notifications/security-policy-hash-password.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2014-2018 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<securityPolicy oid="00000000-0000-0000-0000-000000000120" | ||
xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'> | ||
<name>Default Security Policy</name> | ||
<authentication> | ||
<modules> | ||
<loginForm id="1"> | ||
<identifier>loginForm</identifier> | ||
</loginForm> | ||
<httpBasic id="2"> | ||
<identifier>httpBasic</identifier> | ||
</httpBasic> | ||
</modules> | ||
<sequence id="3"> | ||
<identifier>admin-gui-default</identifier> | ||
<displayName>Default gui sequence</displayName> | ||
<channel> | ||
<default>true</default> | ||
<channelId>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#user</channelId> | ||
<urlSuffix>gui-default</urlSuffix> | ||
</channel> | ||
<module id="6"> | ||
<identifier>loginForm</identifier> | ||
<order>1</order> | ||
<necessity>sufficient</necessity> | ||
</module> | ||
</sequence> | ||
<sequence id="4"> | ||
<identifier>rest-default</identifier> | ||
<channel> | ||
<default>true</default> | ||
<channelId>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#rest</channelId> | ||
<urlSuffix>rest-default</urlSuffix> | ||
</channel> | ||
<module id="7"> | ||
<identifier>httpBasic</identifier> | ||
<order>1</order> | ||
<necessity>sufficient</necessity> | ||
</module> | ||
</sequence> | ||
<sequence id="5"> | ||
<identifier>actuator-default</identifier> | ||
<channel> | ||
<default>true</default> | ||
<channelId>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#actuator</channelId> | ||
<urlSuffix>actuator-default</urlSuffix> | ||
</channel> | ||
<module id="8"> | ||
<identifier>httpBasic</identifier> | ||
<order>1</order> | ||
<necessity>sufficient</necessity> | ||
</module> | ||
</sequence> | ||
<ignoredLocalPath>/actuator/health</ignoredLocalPath> | ||
</authentication> | ||
<credentials> | ||
<password> | ||
<minOccurs>0</minOccurs> | ||
<lockoutMaxFailedAttempts>3</lockoutMaxFailedAttempts> | ||
<lockoutFailedAttemptsDuration>PT3M</lockoutFailedAttemptsDuration> | ||
<lockoutDuration>PT15M</lockoutDuration> | ||
<storageMethod> | ||
<storageType>hashing</storageType> | ||
</storageMethod> | ||
</password> | ||
</credentials> | ||
</securityPolicy> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters