[Dev] How to set authenticated subject identifier with local account mapping

2019-03-07 Thread gayan gunawardana
Hi Team,

As per code[1] its look like* Assert identity using mapped local subject
identifier *is effective for federated authentication only. Can we provide
same functionality when associating local accounts ?

EX: Local account A associated with another local account B. Once I
authenticated with local account A, I want to send user account B as
authenticated subject identifier to service provider.

[1]
https://github.com/wso2/carbon-identity-framework/blob/master/components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/main/java/org/wso2/carbon/identity/application/authentication/framework/handler/request/impl/PostAuthAssociationHandler.java#L113

-- 
Gayan
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Product Installation Resources Released!!!

2019-03-07 Thread Vimukthi Perera
WSO2 Installation Experience team is pleased to announce the release of AWS
and Pivotal Cloud Foundry resources for WSO2 products.

*AWS*
Released artifacts:

   - WSO2 Identity Server v5.7.0.2 -
   https://github.com/wso2/aws-is/releases/tag/v5.7.0.2

Issues:

   - WSO2 Identity Server - https://github.com/wso2/aws-is/issues


*Pivotal Cloud Foundry*
Released artifacts:

   - WSO2 API Manager v2.6.0.2 -
   https://github.com/wso2/pivotal-cf-apim/releases/tag/v2.6.0.2
   - WSO2 Identity Server v5.7.0.2 -
   https://github.com/wso2/pivotal-cf-is/releases/tag/v5.7.0.2
   - WSO2 Enterprise Integrator v6.4.0.1 -
   https://github.com/wso2/pivotal-cf-ei/releases/tag/v6.4.0.1

Issues:

   - WSO2 API Manager - https://github.com/wso2/pivotal-cf-apim/issues
   - WSO2 Identity Server - https://github.com/wso2/pivotal-cf-is/issues
   - WSO2 Enterprise Integrator -
   https://github.com/wso2/pivotal-cf-ei/issues

*How You Can Contribute*
Join our mailing list and correspond with the developers directly.

Developer List: dev@wso2.org
User List: u...@wso2.org

*Reporting Issues*
We encourage you to report issues and documentation faults regarding WSO2
AWS and Pivotal Cloud Foundry resources by creating issues.

Thank you!
WSO2 Installation Experience Team

Vimukthi Perera
Software Engineer
WSO2 Inc.

Mobile: +94771153999
Blog: https://medium.com/@vimukthiperera
Web: http://wso2.com

[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO EI 6.2.0 - Options to call stored procedure on 'Google Cloud SQL'

2019-03-07 Thread Rensburg, Eldrid

In Eclipse, create: WSO2 > Extensions > Project Types > Mediator Project
Code fragment:
import org.apache.synapse.mediators.AbstractMediator;
import java.sql.CallableStatement;
import java.sql.DriverManager;
public class CustomMediatorClass extends AbstractMediator {
public boolean mediate(MessageContext msgCtxt) {
...
Connection con = 
DriverManager.getConnection(dbURL, dbUsr, dbPswd);
CallableStatement cs = null;
…
cs = con.prepareCall("{call yourSP(?, ?)}");
cs.setString(1, spParm01); // spParms from 
msgCtxt
cs.setString(2, spParm02);
...
cs.execute();
if (con != null && !con.isClosed()) {
con.close();
con = null;
}
...
return true;
}
}
Build your jar, copy to WSO2_HOME\lib\ - restart Integrator
Include in your Sequence, REST API: 
ReDeploy your CompositeApp to Integrator


Regards
Eldrid

Including the original msg in email trail:

From: Dev  On Behalf Of Sanjay Bawri
Sent: 06 March 2019 20:56
To: dev@wso2.org
Subject: [Dev] WSO EI 6.2.0 - Options to call stored procedure on 'Google Cloud 
SQL'

This email originated from outside of CGM. Please do not click links or open 
attachments unless you know the sender and know the content is safe.

Hi Team,

Can i request some information? we have a requirement to call a database stored 
procedure on 'Google Cloud SQL' to insert data, but i do not find anything from 
the WSO2 documentation. Any suggestions?

--
JSB
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO EI 6.2.0 - Options to call stored procedure on 'Google Cloud SQL'

2019-03-07 Thread Rensburg, Eldrid

In Eclipse, create: WSO2 > Extensions > Project Types > Mediator Project
Code fragment:
import org.apache.synapse.mediators.AbstractMediator;
import java.sql.CallableStatement;
import java.sql.DriverManager;
public class CustomMediatorClass extends AbstractMediator {
public boolean mediate(MessageContext msgCtxt) {
...
Connection con = 
DriverManager.getConnection(dbURL, dbUsr, dbPswd);
CallableStatement cs = null;
…
cs = con.prepareCall("{call yourSP(?, ?)}");
cs.setString(1, spParm01); // spParms from 
msgCtxt
cs.setString(2, spParm02);
...
cs.execute();
if (con != null && !con.isClosed()) {
con.close();
con = null;
}
...
return true;
}
}
Build your jar, copy to WSO2_HOME\lib\ - restart Integrator
Include in your Sequence, REST API: 
ReDeploy your CompositeApp to Integrator


Regards
Eldrid

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JWT WSO2

2019-03-07 Thread Hasini Witharana
Hi Felipe,

Refer the step 6 in the blog [1] for claim configuration.
[1] -
https://medium.com/@hasiniwitharana/openid-connect-certification-configurations-for-basic-profile-with-wso2-identity-server-e3cd511a9f37

Thank You.

On Thu, Feb 7, 2019 at 9:56 PM Felipe Pinheiro <
felipe.pinhe...@ifactory.com.br> wrote:

> Hello,
>
> I am trying to make a change in JWT by adding new information sent in the
> request (/token).
>
> Is there a way to send a parameter in a custom grant type and add that
> parameter inside JWT?
>
> I am with this issue there for some weeks and I don't know if is possible
> to perform that change in the JWT.
>
> Thank you very much.
>
> Cheers,
> Felipe Pinheiro
> Software Developer
> [image: telephone] +55 85 996123367 [image: skype] live:felipeagpinheiro 
> [image:
> linkedin] linkedin.com/in/felipe-pinheiro-8b045587
> 
> Innovating Commerce with Shopping Intelligence
> [image: OSF Banner]
> 
> https://www.osf-commerce.com/
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Hasini Witharana*
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Linkedin 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev