Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
iberculturaviva
iberculturaviva-mapas
Commits
ebba8872
Commit
ebba8872
authored
6 years ago
by
Rafael Chaves Freitas
Browse files
Options
Download
Email Patches
Plain Diff
install MultipleLocalAuth plugin
parent
db532aa9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
6 deletions
+46
-6
compose/Dockerfile
compose/Dockerfile
+2
-0
compose/config.d/authentication.php
compose/config.d/authentication.php
+31
-2
compose/config.d/plugins.php
compose/config.d/plugins.php
+8
-1
docker-compose.yml
docker-compose.yml
+5
-3
No files found.
compose/Dockerfile
View file @
ebba8872
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
This diff is collapsed.
Click to expand it.
compose/config.d/authentication.php
View file @
ebba8872
<?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'
,
),
]
),
];
This diff is collapsed.
Click to expand it.
compose/config.d/plugins.php
View file @
ebba8872
<?php
return
[];
\ No newline at end of file
return
[
'plugins'
=>
[
// ... outros plugins
'MultipleLocalAuth'
=>
[
'namespace'
=>
'MultipleLocalAuth'
,
],
]
];
This diff is collapsed.
Click to expand it.
docker-compose.yml
View file @
ebba8872
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment