Skip to content

Commit

Permalink
Merge pull request #749 from dumidus/EGW-DEVX
Browse files Browse the repository at this point in the history
commit custom handler bug  fixes to dev branch
  • Loading branch information
aushaniU authored Jan 8, 2021
2 parents cc281ca + 93f80c5 commit 87c4637
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public String getClientToken(String clientId) throws Exception {
ResultSet results = null;
String clientIdToken = null;

String sql = "select ACCESS_TOKEN from idn_oauth2_access_token where CONSUMER_KEY_ID = ? and TOKEN_STATE = 'ACTIVE';";
String sql = "select ACCESS_TOKEN from idn_oauth2_access_token where CONSUMER_KEY_ID = ? and TOKEN_STATE = 'ACTIVE' and GRANT_TYPE = 'client_credentials'";
try {
conn = DbUtils.getDbConnection(DataSourceNames.WSO2AM_DB);
ps = conn.prepareStatement(sql);
Expand Down

0 comments on commit 87c4637

Please sign in to comment.