Skip to content

Commit

Permalink
Merge pull request #301 from secultce/develop
Browse files Browse the repository at this point in the history
πŸ”– Merge develop to homolog
  • Loading branch information
Junior-Shyko authored Nov 5, 2024
2 parents 653cd90 + 4a4b199 commit 32ef474
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 31 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Todas as mudanças notÑveis no projeto serão documentadas neste arquivo.
O formato Γ© baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.0.0/)
e este projeto adere ao [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.9.3-rc2] - 2024-11-05
### Modificado
- Alterado versão do plugin de Autenticação
- Alterado arquivo de autenticação para uso local

## [5.9.2] - 2024-09-24
### Adicionado
- Área Prestação de Contas.
Expand Down
71 changes: 42 additions & 29 deletions compose/local/config.d/auth.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,46 @@
<?php

return [
'auth.provider' => 'Fake',
// 'auth.provider' => '\MultipleLocalAuth\Provider',
// 'auth.config' => [
// 'salt' => env('AUTH_SALT', null),
// 'timeout' => '24 hours',
// 'strategies' => [
// 'Facebook' => [
// 'app_id' => env('AUTH_FACEBOOK_APP_ID', null),
// 'app_secret' => env('AUTH_FACEBOOK_APP_SECRET', null),
// 'scope' => env('AUTH_FACEBOOK_SCOPE', 'email'),
// ],
// 'LinkedIn' => [
// 'api_key' => env('AUTH_LINKEDIN_API_KEY', null),
// 'secret_key' => env('AUTH_LINKEDIN_SECRET_KEY', null),
// 'redirect_uri' => '/autenticacao/linkedin/oauth2callback',
// 'scope' => env('AUTH_LINKEDIN_SCOPE', 'r_emailaddress')
// ],
// 'Google' => [
// 'client_id' => env('AUTH_GOOGLE_CLIENT_ID', null),
// 'client_secret' => env('AUTH_GOOGLE_CLIENT_SECRET', null),
// 'redirect_uri' => '/autenticacao/google/oauth2callback',
// 'scope' => env('AUTH_GOOGLE_SCOPE', 'email'),
// ],
// 'Twitter' => [
// 'app_id' => env('AUTH_TWITTER_APP_ID', null),
// 'app_secret' => env('AUTH_TWITTER_APP_SECRET', null),
// ],
// ]
// ]
// 'auth.provider' => 'Fake',
'auth.provider' => '\MultipleLocalAuth\Provider',
'auth.config' => [
'salt' => 'LT_SECURITY_SALT_SECURITY_SALT_SECURITY_SALT_SECURITY_SALT_SECU',
'timeout' => '24 hours',
'enableLoginByCPF' => true,
'metadataFieldCPF' => 'documento',
'userMustConfirmEmailToUseTheSystem' => true,
'passwordMustHaveCapitalLetters' => false,
'passwordMustHaveLowercaseLetters' => true,
'passwordMustHaveSpecialCharacters' => false,
'passwordMustHaveNumbers' => true,
'minimumPasswordLength' => 8,
'google-recaptcha-sitekey' => env('GOOGLE_RECAPTCHA_SITEKEY'),
'google-recaptcha-secret' => env('GOOGLE_RECAPTCHA_SECRET'),
'sessionTime' => 7200, // int , tempo da sessao do usuario em segundos
'numberloginAttemp' => '10', // tentativas de login antes de bloquear o usuario por X minutos
'timeBlockedloginAttemp' => '900', //
'strategies' => [
'Facebook' => [
'app_id' => env('AUTH_FACEBOOK_APP_ID', null),
'app_secret' => env('AUTH_FACEBOOK_APP_SECRET', null),
'scope' => env('AUTH_FACEBOOK_SCOPE', 'email'),
],
'LinkedIn' => [
'api_key' => env('AUTH_LINKEDIN_API_KEY', null),
'secret_key' => env('AUTH_LINKEDIN_SECRET_KEY', null),
'redirect_uri' => '/autenticacao/linkedin/oauth2callback',
'scope' => env('AUTH_LINKEDIN_SCOPE', 'r_emailaddress')
],
'Google' => [
'client_id' => env('AUTH_GOOGLE_CLIENT_ID', null),
'client_secret' => env('AUTH_GOOGLE_CLIENT_SECRET', null),
'redirect_uri' => '/autenticacao/google/oauth2callback',
'scope' => env('AUTH_GOOGLE_SCOPE', 'email'),
],
'Twitter' => [
'app_id' => env('AUTH_TWITTER_APP_ID', null),
'app_secret' => env('AUTH_TWITTER_APP_SECRET', null),
],
]
]
];
2 changes: 1 addition & 1 deletion src/protected/application/plugins/MultipleLocalAuth
Submodule MultipleLocalAuth updated 2 files
+4 βˆ’0 CHANGELOG.md
+2 βˆ’1 Provider.php
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.9.2
5.9.3-rc2

0 comments on commit 32ef474

Please sign in to comment.