Hi Gayan,

I have written a sample to get the same requirement done. You can find it
in [1].

In the code, I have added some sample policy patterns for different
tenants. You can add the per tenant policies in identity-mgt.properties as
well and then retrieve the policy patterns in the init method of this
sample.

Note that if you put the regex directly in the code, then it's the same
java regex you have to put. If you define the patterns in
identity-mgt.properties file, then you may have to put some escaping like
\\.

[1]
https://github.com/thariyarox/WSO2PasswordPatternPolicySamples/tree/master/TenantSpecificPasswordPatterns/password-policy-extension/src/main/java/com/wso2/password/policy

Regards,
TharinduE

On Tue, Mar 15, 2016 at 9:48 AM, Gayan Gunawardana <[email protected]> wrote:

>
>
> On Tue, Mar 15, 2016 at 9:42 AM, Johann Nallathamby <[email protected]>
> wrote:
>
>> Yes. We don't have tenanted password policy validator by default in IS.
>> We may have to write one.
>>
> Thanks Johann. Will look into custom password validator.
>
>>
>> On Tue, Mar 15, 2016 at 9:25 AM, Gayan Gunawardana <[email protected]>
>> wrote:
>>
>>> Hi All,
>>>
>>> Is there a way to configure password policy per tenant ?
>>>
>>>  Do we need to write custom password validator according to [1] ?
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/IS510/Writing+a+Custom+Password+Validator
>>>
>>> Thanks,
>>> Gayan
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: [email protected]
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+94777776950*
>> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>>
>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: [email protected]
> Mobile: +94 (71) 8020933
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to