You should get the UserRealm from the CarbonContext and authenticate.

CarbonContext.getThreadLocalCarbonContext().getUserRealm().getUserStoreManager().authenticate()

On Fri, Feb 20, 2015 at 2:10 PM, Pubudu Dodangoda <[email protected]> wrote:

> I have a method which authenticates a user using an authentication stub,
> which requires the code to provide the service end point and the
> configuration context specifically
>
> Is there a way to authenticate a user internally without going on this
> long route?
>
> Note- The web app is hosted inside the BAM, and start automatically when
> the carbon server starts
>
>
> --
> Pubudu Dodangoda
> BSc Engineering(Hon's) Undergraduate
> Department of Computer Science Engineering
> University of Moratuwa
> 0716053681 / 0775192994
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Associate Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+94777776950*
Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to