environnement complet autonome, révision complete de la méthode, ajout de configuration
This commit is contained in:
18
containers/compose/hydra/clients.d/oidc-test.json
Normal file
18
containers/compose/hydra/clients.d/oidc-test.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"client_id": "oidc-test",
|
||||
"client_name": "OIDC Test",
|
||||
"client_secret": "oidc-test-123456",
|
||||
"grant_types": [
|
||||
"authorization_code",
|
||||
"refresh_token"
|
||||
],
|
||||
"jwks": {},
|
||||
"metadata": {},
|
||||
"token_endpoint_auth_method": "client_secret_basic",
|
||||
"post_logout_redirect_uris": ["http://localhost:8000"],
|
||||
"redirect_uris": ["http://localhost:8000/oauth2/callback"],
|
||||
"response_types": [
|
||||
"code"
|
||||
],
|
||||
"scope": "openid email"
|
||||
}
|
1
containers/compose/pgadmin/pgpass
Normal file
1
containers/compose/pgadmin/pgpass
Normal file
@ -0,0 +1 @@
|
||||
postgres:5432:lasql:lasql:lasql
|
14
containers/compose/pgadmin/server.json
Normal file
14
containers/compose/pgadmin/server.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"Servers": {
|
||||
"1": {
|
||||
"Name": "postgres",
|
||||
"Group": "Servers",
|
||||
"Host": "postgres",
|
||||
"Port": 5432,
|
||||
"MaintenanceDB": "postgres",
|
||||
"Username": "lasql",
|
||||
"PassFile": "/pgpass",
|
||||
"SSLMode": "prefer"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
-- IF NOT EXISTS (SELECT * FROM pg_user WHERE usename = 'lasql')then
|
||||
-- CREATE USER lasql WITH PASSWORD 'lasql';
|
||||
-- END IF;
|
||||
|
||||
-- GRANT ALL PRIVILEGES ON DATABASE lasql TO lasql;
|
||||
-- ALTER USER lasql WITH SUPERUSER;
|
||||
|
@ -0,0 +1,2 @@
|
||||
SELECT 'CREATE DATABASE hydra' WHERE NOT EXISTS (SELECT * FROM pg_database WHERE datname = 'hydra')\gexec
|
||||
GRANT ALL PRIVILEGES ON DATABASE hydra TO lasql
|
12
containers/compose/postgres/init-db.d/fill_lasql.sql
Normal file
12
containers/compose/postgres/init-db.d/fill_lasql.sql
Normal file
@ -0,0 +1,12 @@
|
||||
CREATE TABLE IF NOT EXISTS usager (
|
||||
email VARCHAR ( 100 ) UNIQUE NOT NULL,
|
||||
password VARCHAR ( 255 ) NOT NULL,
|
||||
lastname VARCHAR ( 255 ) NOT NULL,
|
||||
firstname VARCHAR ( 255 ) NOT NULL
|
||||
);
|
||||
INSERT INTO usager (email, password, lastname, firstname) VALUES
|
||||
('test1@test.com', '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 'Locke', 'John'),
|
||||
('test2@test.com', '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 'Dubois', 'Angela'),
|
||||
('test3@test.com', '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 'Dupont', 'Henri'),
|
||||
('test4@test.com', '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 'Durand', 'Isabelle');
|
||||
GRANT ALL PRIVILEGES ON DATABASE usager TO lasql
|
Reference in New Issue
Block a user