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:
20
examples/demo/site/scripts/oauth2_consumers.sql
Normal file
20
examples/demo/site/scripts/oauth2_consumers.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
BEGIN;
|
||||
|
||||
CREATE TABLE "oauth2_consumers"(
|
||||
"cid" INTEGER PRIMARY KEY NOT NULL CHECK("cid">=0),
|
||||
"name" VARCHAR(255) NOT NULL,
|
||||
"api_secret" TEXT NOT NULL,
|
||||
"api_key" TEXT NOT NULL,
|
||||
"scope" VARCHAR (100) NOT NULL,
|
||||
"protected_resource_url" VARCHAR (255) NOT NULL,
|
||||
"callback_name" VARCHAR(255) NOT NULL,
|
||||
"extractor" VARCHAR(50) NOT NULL,
|
||||
"authorize_url" VARCHAR (255) NOT NULL,
|
||||
"endpoint" VARCHAR (255) NOT NULL,
|
||||
CONSTRAINT "cid"
|
||||
UNIQUE("cid"),
|
||||
CONSTRAINT "name"
|
||||
UNIQUE("name")
|
||||
);
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user