Updated Login Module.
- OAUTH LOGIN: is generic based on a new OAUTH_20_GENERIC_API
- Storage (at the moment only SQL) for OAUTH_CONSUMER configuration.
- OAUTH login and callback are generic.
- Added a OAUTH_20_GENERIC_API.
- Added scripts and templates to build the new OAUTH tables.
- Fixed CMS_STORAGE_SQL_I.check_sql_query_validity issue.
- Extended CMS_STORAGE_SQL_I, to execute scripts with paramerters.
- Updated filter, now it's generic for every OAUTH consumer.
This commit is contained in:
14
examples/demo/site/scripts/oauth2_template.sql
Normal file
14
examples/demo/site/scripts/oauth2_template.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
BEGIN;
|
||||
|
||||
|
||||
CREATE TABLE :table_name (
|
||||
"uid" INTEGER PRIMARY KEY NOT NULL CHECK("uid">=0),
|
||||
"access_token" TEXT NOT NULL,
|
||||
"created" DATETIME NOT NULL,
|
||||
"details" TEXT NOT NULL,
|
||||
CONSTRAINT "uid"
|
||||
UNIQUE("uid")
|
||||
);
|
||||
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user