Hi Kathees,

You have also done the same. Guess this also works in tenant mode?

On Tue, Mar 15, 2016 at 1:47 PM, Tharindu Edirisinghe <[email protected]>
wrote:

> 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
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to