/** * @param consumerKey Consumer Key provided by the user * @return consumer secret * @throws Exception Error when reading the consumer secret from the persistence store. */ private String getOAuthSecretKey(String consumerKey) throws IdentityOAuthAdminException { OAuthConsumerDAO dao = new OAuthConsumerDAO(); return dao.getOAuthConsumerSecret(consumerKey); }
private String getClientSecret(String inboundAuthKey) throws IdentityOAuthAdminException { OAuthConsumerDAO dao = new OAuthConsumerDAO(); return dao.getOAuthConsumerSecret(inboundAuthKey); }
private String getClientSecret(String inboundAuthKey) throws IdentityOAuthAdminException { OAuthConsumerDAO dao = new OAuthConsumerDAO(); return dao.getOAuthConsumerSecret(inboundAuthKey); }
/** * @param consumerKey Consumer Key provided by the user * @return consumer secret * @throws Exception Error when reading the consumer secret from the persistence store. */ private String getOAuthSecretKey(String consumerKey) throws IdentityOAuthAdminException { OAuthConsumerDAO dao = new OAuthConsumerDAO(); return dao.getOAuthConsumerSecret(consumerKey); }
OAuthConsumerDAO oAuthConsumerDAO = new OAuthConsumerDAO(); clientSecret = oAuthConsumerDAO.getOAuthConsumerSecret(clientId); if (log.isDebugEnabled()) {
OAuthConsumerDAO oAuthConsumerDAO = new OAuthConsumerDAO(); if (isHashDisabled) { if (clientSecret == null) {
OAuthConsumerDAO oAuthConsumerDAO = new OAuthConsumerDAO(); username = oAuthConsumerDAO.getAuthenticatedUsername(clientId, clientSecretProvided); if (log.isDebugEnabled()) {
OAuthConsumerDAO oAuthConsumerDAO = new OAuthConsumerDAO(); username = oAuthConsumerDAO.getAuthenticatedUsername(clientId, clientSecretProvided); if (log.isDebugEnabled()) {
OAuthConsumerDAO dao = new OAuthConsumerDAO(); secretkey = dao.getOAuthConsumerSecret(params.getOauthConsumerKey());
/** * Returns the scope and the web application this particular token been issued to. * * @param oauthToken OAuth request token. * @return * @throws Exception */ public Parameters getScopeAndAppName(String oauthToken) throws Exception { OAuthConsumerDAO consumerDAO = new OAuthConsumerDAO(); Parameters params = consumerDAO.getRequestToken(oauthToken); OAuthAppDAO appDAO = new OAuthAppDAO(); OAuthAppDO oauthAppDO = appDAO.getAppInformation(params.getOauthConsumerKey()); Parameters resp = new Parameters(); resp.setScope(params.getScope()); resp.setAppName(oauthAppDO.getApplicationName()); return resp; }
/** * Returns the scope and the web application this particular token been issued to. * * @param oauthToken OAuth request token. * @return * @throws Exception */ public Parameters getScopeAndAppName(String oauthToken) throws Exception { OAuthConsumerDAO consumerDAO = new OAuthConsumerDAO(); Parameters params = consumerDAO.getRequestToken(oauthToken); OAuthAppDAO appDAO = new OAuthAppDAO(); OAuthAppDO oauthAppDO = appDAO.getAppInformation(params.getOauthConsumerKey()); Parameters resp = new Parameters(); resp.setScope(params.getScope()); resp.setAppName(oauthAppDO.getApplicationName()); return resp; }
OAuthConsumerDAO dao = new OAuthConsumerDAO(); secretkey = dao.getOAuthConsumerSecret(params.getOauthConsumerKey());
/** * @param oauthParams * @return * @throws RegistryException * @throws IdentityException */ private Parameters generateOauthToken(Parameters oauthParams) throws IdentityOAuthAdminException { OAuthConsumerDAO dao = new OAuthConsumerDAO(); String oauthToken = org.wso2.carbon.identity.oauth.OAuthUtil.getRandomNumber(); String oauthSecret = org.wso2.carbon.identity.oauth.OAuthUtil.getRandomNumber(); dao.createOAuthRequestToken(oauthParams.getOauthConsumerKey(), oauthToken, oauthSecret, oauthParams.getOauthCallback(), oauthParams.getScope()); Parameters params = new Parameters(); params.setOauthConsumerKey(oauthParams.getOauthConsumerKey()); params.setOauthToken(oauthToken); params.setOauthTokenSecret(oauthSecret); return params; }
/** * @param oauthParams * @return * @throws RegistryException * @throws IdentityException */ private Parameters generateOauthToken(Parameters oauthParams) throws IdentityOAuthAdminException { OAuthConsumerDAO dao = new OAuthConsumerDAO(); String oauthToken = org.wso2.carbon.identity.oauth.OAuthUtil.getRandomNumber(); String oauthSecret = org.wso2.carbon.identity.oauth.OAuthUtil.getRandomNumber(); dao.createOAuthRequestToken(oauthParams.getOauthConsumerKey(), oauthToken, oauthSecret, oauthParams.getOauthCallback(), oauthParams.getScope()); Parameters params = new Parameters(); params.setOauthConsumerKey(oauthParams.getOauthConsumerKey()); params.setOauthToken(oauthToken); params.setOauthTokenSecret(oauthSecret); return params; }
OAuthConsumerDAO dao = new OAuthConsumerDAO(); String oauthVerifier = org.wso2.carbon.identity.oauth.OAuthUtil.getRandomNumber(); Parameters token = dao.authorizeOAuthToken(params.getOauthToken(), tenantUser,
OAuthConsumerDAO dao = new OAuthConsumerDAO(); String oauthVerifier = org.wso2.carbon.identity.oauth.OAuthUtil.getRandomNumber(); Parameters token = dao.authorizeOAuthToken(params.getOauthToken(), tenantUser,
OAuthConsumerDAO dao = new OAuthConsumerDAO(); secretKey = dao.getOAuthConsumerSecret(params.getOauthConsumerKey()); if (secretKey == null) {
String secretKey = null; OAuthConsumerDAO dao = new OAuthConsumerDAO(); secretKey = dao.getOAuthConsumerSecret(params.getOauthConsumerKey());
OAuthConsumerDAO dao = new OAuthConsumerDAO(); secretKey = dao.getOAuthConsumerSecret(params.getOauthConsumerKey()); if (secretKey == null) {
String secretKey = null; OAuthConsumerDAO dao = new OAuthConsumerDAO(); secretKey = dao.getOAuthConsumerSecret(params.getOauthConsumerKey());