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:
Nicolas Héron 2019-04-13 10:36:17 +02:00
commit b2c98ffe14
14 changed files with 3883 additions and 572 deletions

View 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;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View 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"]