@ -21,8 +21,8 @@ public class SqliteAuthService extends SqliteStore implements AuthorizationServi
@@ -21,8 +21,8 @@ public class SqliteAuthService extends SqliteStore implements AuthorizationServi
privatestaticfinalStringSELECT_STORE_VERSION="SELECT * FROM metainfo WHERE key = '"+STORE_VERSION+"'";
privatestaticfinalStringSET_STORE_VERSION="UPDATE metainfo SET value = ? WHERE key = '"+STORE_VERSION+"'";
privatestaticfinalStringCREATE_AUTHSTORE_TABLE="CREATE TABLE IF NOT EXISTS authorizations(userId VARCHAR(255), clientId VARCHAR(255), scope VARCHAR(255), expiration LONG, PRIMARY KEY(userId, clientId, scope));";
privatestaticfinalStringSAVE_AUTHORIZATION="INSERT INTO authorizations(userId, clientId, scope, expiration) VALUES (?,?,?,?) ON CONFLICT DO UPDATE SET expiration = ?";
privatestaticfinalStringCREATE_AUTHSTORE_TABLE="CREATE TABLE IF NOT EXISTS authorizations(userId VARCHAR(255), clientId VARCHAR(255), scope VARCHAR(255), expiration LONG, nonce VARCHAR(255), PRIMARY KEY(userId, clientId, scope));";
privatestaticfinalStringSAVE_AUTHORIZATION="INSERT INTO authorizations(userId, clientId, scope, nonce, expiration) VALUES (?,?,?,?,?) ON CONFLICT DO UPDATE SET nonce = ?, expiration = ?";
privatestaticfinalStringSELECT_AUTH="SELECT * FROM authorizations WHERE userid = ? AND clientId = ? AND scope IN";