Dushan connector creds are going to be user specific. So that means they
have to be able to configure them in a user-accessible way .. and then the
data needs to be stored in a secure vault of some kind.

For UI driven configs that's easy - we get the password in the UI, store in
the vault and refer to it in the mediator config.

For hand edited synapse.xml stuff you'd need to let the user do the same.
Do we have a per-user vault type concept?

Sanjiva.


On Fri, Jul 19, 2013 at 11:18 AM, Dushan Abeyruwan <[email protected]> wrote:

> Hi
>    Regarding $subject, what would be the best way to accomplish ?
>              According to the EntitlementMediator implementation it seems
> we are using a different approach as shown below [1], any reason which
> prevent us moving to synapse secure vault and also seems there are zero
> documentation related to Synapse secure vault configuration.
>
>
> [1]
>
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.entitlement.mediator/src/main/java/org/wso2/carbon/identity/entitlement/mediator/EntitlementMediator.java
>
>
>  public void setRemoteServicePassword(String remoteServicePassword) {
>         if (remoteServicePassword.startsWith("enc:")) {
>             try {
>               *  this.remoteServicePassword = new
> String(CryptoUtil.getDefaultCryptoUtil()*
> *
> .base64DecodeAndDecrypt(remoteServicePassword.substring(4)));*
>             } catch (CryptoException e) {
>                  log.error(e);
>             }
>         } else {
>             this.remoteServicePassword = remoteServicePassword;
>         }
>     }
>
> Cheers,
> Dushan Abeyruwan
> Associate Tech Lead
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com/*
> *Mobile:(+94)714408632*
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
email: [email protected]; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to