Commit ebba8872 authored by Rafael Chaves Freitas's avatar Rafael Chaves Freitas
Browse files

install MultipleLocalAuth plugin

parent db532aa9
FROM hacklab/mapasculturais:latest
COPY themes/IberCulturaViva /var/www/html/protected/application/themes/IberCulturaViva
RUN git clone https://github.com/LibreCoopUruguay/MultipleLocalAuth /var/www/html/protected/application/plugins/MultipleLocalAuth
<?php
return [
'auth.provider' => 'Fake'
];
\ No newline at end of file
'auth.provider' => '\MultipleLocalAuth\Provider',
'auth.config' => array(
'salt' => 'LT_SECURITY_SALT_SECURITY_SALT_SECURITY_SALT_SECURITY_SALT_SECU',
'timeout' => '24 hours',
'strategies' => [
'Facebook' => array(
'app_id' => 'SUA_APP_ID',
'app_secret' => 'SUA_APP_SECRET',
'scope' => 'email'
),
'LinkedIn' => array(
'api_key' => 'SUA_API_KEY',
'secret_key' => 'SUA_SECRET_KEY',
'redirect_uri' => URL_DO_SEU_SITE . '/autenticacao/linkedin/oauth2callback',
'scope' => 'r_emailaddress'
),
'Google' => array(
'client_id' => 'SEU_CLIENT_ID',
'client_secret' => 'SEU_CLIENT_SECRET',
'redirect_uri' => URL_DO_SEU_SITE . '/autenticacao/google/oauth2callback',
'scope' => 'email'
),
'Twitter' => array(
'app_id' => 'SUA_APP_ID',
'app_secret' => 'SUA_APP_SECRET',
),
]
),
];
<?php
return [];
\ No newline at end of file
return [
'plugins' => [
// ... outros plugins
'MultipleLocalAuth' => [
'namespace' => 'MultipleLocalAuth',
],
]
];
......@@ -28,13 +28,15 @@ services:
ports:
- "9000:9000"
volumes:
- ./docker-data/assets:/var/www/html/assets
- ./docker-data/public-files:/var/www/html/files
- ./docker-data/private-files:/var/www/private-files
- ./themes/IberCulturaViva:/var/www/html/protected/application/themes/IberCulturaViva
- ./compose/config.php:/var/www/html/protected/application/conf/config.php
- ./compose/config.d:/var/www/html/protected/application/conf/config.d
# o usuário www-data dentro do container precisa ter permissão de escrita nessas 3 pastas abaixo
- ./docker-data/assets:/var/www/html/assets
- ./docker-data/public-files:/var/www/html/files
- ./docker-data/private-files:/var/www/private-files
links:
- db
environment:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment