Examples of OAuthServiceStub


Examples of org.wso2.carbon.identity.oauth.stub.OAuthServiceStub

    public OAuthServiceClient(String backendServerURL, ConfigurationContext configCtx)
            throws Exception {
        String serviceURL = backendServerURL + "OAuthService";
        try {
            stub = new OAuthServiceStub(configCtx, serviceURL);
        } catch (AxisFault e) {
            throw new Exception("Error initializing Relying Party Client", e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.identity.samples.oauth.admin.OAuthServiceStub

    public boolean validateAuthenticationRequest(String shortLivedToken, OAuthConsumerDTO consumer)
            throws Exception {
        String serviceURL = null;
        ServiceClient client = null;
        Options option = null;
        OAuthServiceStub oauth = null;

        serviceURL = backendServerURL + "OAuthService";
        oauth = new OAuthServiceStub(configCtx, serviceURL);
        client = oauth._getServiceClient();
        option = client.getOptions();
        option.setManageSession(true);
        option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, authCookie);
        return oauth.validateAuthenticationRequest(consumer, shortLivedToken);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.