Start using Keycloak for SSO authentification for business central
TODO : using keyclaok in other features like rest services in business central
This commit is contained in:
parent
4df3c2de3a
commit
b2c98ffe14
14 changed files with 3883 additions and 572 deletions
4
keycloak-db/src/main/docker/01_init.sql
Normal file
4
keycloak-db/src/main/docker/01_init.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
CREATE USER keycloak_user WITH PASSWORD 'keycloak_user';
|
||||
CREATE TABLESPACE keycloak_tablesplace owner keycloak_user location '/home/pgdata/keycloak';
|
||||
create database keycloakdb ENCODING = 'UTF8' TABLESPACE keycloak_tablesplace;
|
||||
GRANT ALL PRIVILEGES ON database keycloakdb to keycloak_user;
|
||||
1564
keycloak-db/src/main/docker/02_Create_table.sql
Normal file
1564
keycloak-db/src/main/docker/02_Create_table.sql
Normal file
File diff suppressed because it is too large
Load diff
1766
keycloak-db/src/main/docker/03_Create_table_content.sql
Normal file
1766
keycloak-db/src/main/docker/03_Create_table_content.sql
Normal file
File diff suppressed because it is too large
Load diff
15
keycloak-db/src/main/docker/Dockerfile
Normal file
15
keycloak-db/src/main/docker/Dockerfile
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
FROM postgres:9.4
|
||||
RUN mkdir /home/pgdata
|
||||
RUN mkdir /home/pgdata/keycloak
|
||||
|
||||
RUN chown -R postgres: /home/pgdata
|
||||
|
||||
|
||||
VOLUME /home/pgdata
|
||||
RUN chown postgres: /home/pgdata
|
||||
ADD 01_init.sql /docker-entrypoint-initdb.d/
|
||||
ADD 02_Create_table.sql /docker-entrypoint-initdb.d/
|
||||
ADD 03_Create_table_content.sql /docker-entrypoint-initdb.d/
|
||||
|
||||
CMD ["postgres"]
|
||||
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue