Loading config-example.json +6 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ "LocalIdP": { "url": "https://sso.ia2.inaf.it/Shibboleth.sso/Login?entityID=https://sso.ia2.inaf.it/idp/shibboleth&target=https://sso.ia2.inaf.it/rap-ia2/auth/saml2/aai.php", "logo": "img/ia2-logo-60x60.png", "logo_alt": "IA2 logo", "logoAlt": "IA2 logo", "description": "Use the IA2 Logo to Login if you have an account provided by IA2 or self registered" }, "OrcID": { Loading @@ -43,5 +43,10 @@ "callback": "/auth/orcid", "secret": "" } }, "gms": { "baseUrl": "https://sso.ia2.inaf.it/gms", "clientId": "rap", "clientSecret": "rap-secret" } } No newline at end of file sql/setup-database.sql +14 −15 Original line number Diff line number Diff line CREATE TABLE `oauth2_client` ( `id` int NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `icon` varchar(255), `icon` varchar(255) DEFAULT NULL, `client` varchar(255) NOT NULL, `secret` varchar(255) NOT NULL, `redirect_url` text NOT NULL, `scope` varchar(255) NOT NULL, `home_page` varchar(255), `show_in_home` boolean DEFAULT FALSE, PRIMARY KEY (`id`), UNIQUE(client) `scope` varchar(255) DEFAULT NULL, `home_page` varchar(255) DEFAULT NULL, `show_in_home` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `oauth2_client_auth_methods` ( Loading Loading @@ -48,12 +47,12 @@ CREATE TABLE `access_token` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `token` text NOT NULL, `user_id` text NOT NULL, `code` text, `creation_time` BIGINT NOT NULL DEFAULT UNIX_TIMESTAMP(), `expiration_time` BIGINT NOT NULL, `redirect_uri` text, `client_id` varchar(255) NOT NULL, `scope` text, `code` text DEFAULT NULL, `creation_time` bigint(20) NOT NULL, `expiration_time` bigint(20) DEFAULT NULL, `redirect_uri` text DEFAULT NULL, `client_id` varchar(255) DEFAULT NULL, `scope` text DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Loading @@ -61,7 +60,7 @@ CREATE TABLE `refresh_token` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `token` text NOT NULL, `user_id` text NOT NULL, `creation_time` BIGINT NOT NULL DEFAULT UNIX_TIMESTAMP(), `creation_time` BIGINT NOT NULL, `expiration_time` BIGINT NOT NULL, `client_id` varchar(255) NOT NULL, `scope` text, Loading @@ -73,7 +72,7 @@ CREATE TABLE `rsa_keypairs` ( `public_key` text, `private_key` text, `alg` varchar(255), `creation_time` BIGINT NOT NULL DEFAULT UNIX_TIMESTAMP(), `creation_time` BIGINT NOT NULL, PRIMARY KEY (`id`) ); Loading Loading
config-example.json +6 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ "LocalIdP": { "url": "https://sso.ia2.inaf.it/Shibboleth.sso/Login?entityID=https://sso.ia2.inaf.it/idp/shibboleth&target=https://sso.ia2.inaf.it/rap-ia2/auth/saml2/aai.php", "logo": "img/ia2-logo-60x60.png", "logo_alt": "IA2 logo", "logoAlt": "IA2 logo", "description": "Use the IA2 Logo to Login if you have an account provided by IA2 or self registered" }, "OrcID": { Loading @@ -43,5 +43,10 @@ "callback": "/auth/orcid", "secret": "" } }, "gms": { "baseUrl": "https://sso.ia2.inaf.it/gms", "clientId": "rap", "clientSecret": "rap-secret" } } No newline at end of file
sql/setup-database.sql +14 −15 Original line number Diff line number Diff line CREATE TABLE `oauth2_client` ( `id` int NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `icon` varchar(255), `icon` varchar(255) DEFAULT NULL, `client` varchar(255) NOT NULL, `secret` varchar(255) NOT NULL, `redirect_url` text NOT NULL, `scope` varchar(255) NOT NULL, `home_page` varchar(255), `show_in_home` boolean DEFAULT FALSE, PRIMARY KEY (`id`), UNIQUE(client) `scope` varchar(255) DEFAULT NULL, `home_page` varchar(255) DEFAULT NULL, `show_in_home` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `oauth2_client_auth_methods` ( Loading Loading @@ -48,12 +47,12 @@ CREATE TABLE `access_token` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `token` text NOT NULL, `user_id` text NOT NULL, `code` text, `creation_time` BIGINT NOT NULL DEFAULT UNIX_TIMESTAMP(), `expiration_time` BIGINT NOT NULL, `redirect_uri` text, `client_id` varchar(255) NOT NULL, `scope` text, `code` text DEFAULT NULL, `creation_time` bigint(20) NOT NULL, `expiration_time` bigint(20) DEFAULT NULL, `redirect_uri` text DEFAULT NULL, `client_id` varchar(255) DEFAULT NULL, `scope` text DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Loading @@ -61,7 +60,7 @@ CREATE TABLE `refresh_token` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `token` text NOT NULL, `user_id` text NOT NULL, `creation_time` BIGINT NOT NULL DEFAULT UNIX_TIMESTAMP(), `creation_time` BIGINT NOT NULL, `expiration_time` BIGINT NOT NULL, `client_id` varchar(255) NOT NULL, `scope` text, Loading @@ -73,7 +72,7 @@ CREATE TABLE `rsa_keypairs` ( `public_key` text, `private_key` text, `alg` varchar(255), `creation_time` BIGINT NOT NULL DEFAULT UNIX_TIMESTAMP(), `creation_time` BIGINT NOT NULL, PRIMARY KEY (`id`) ); Loading