|
2 | 2 |
|
3 | 3 | return [ |
4 | 4 | 'plugins' => [ |
5 | | - 'MultipleLocalAuth', |
6 | | - 'AdminLoginAsUser', |
7 | | - 'RecreatePCacheOnLogin', |
8 | | - 'SpamDetector' |
| 5 | + 'MultipleLocalAuth' => [ |
| 6 | + 'namespace' => 'MultipleLocalAuth', |
| 7 | + 'config' => array( |
| 8 | + 'salt' => env('AUTH_SALT', null), |
| 9 | + 'timeout' => '24 hours', |
| 10 | + 'strategies' => [ |
| 11 | + 'govbr' => [ |
| 12 | + 'visible' => env('AUTH_GOV_BR_ID', true), |
| 13 | + 'response_type' => 'code', |
| 14 | + 'scope' => 'openid email profile phone govbr_confiabilidades', |
| 15 | + 'redirect_uri' => 'https://experimente-minc.mapas.tec.br/autenticacao/govbr/oauth2callback', |
| 16 | + 'auth_endpoint' => 'https://sso.staging.acesso.gov.br/authorize', |
| 17 | + 'token_endpoint' => 'https://sso.staging.acesso.gov.br/token', |
| 18 | + 'nonce' => 'abc', |
| 19 | + 'code_challenge_method' => 'S256', |
| 20 | + 'userinfo_endpoint' => 'https://sso.acesso.gov.br/jwk', |
| 21 | + 'state_salt' => "mapasminc", |
| 22 | + 'applySealId' => 1, |
| 23 | + 'menssagem_authenticated' => "", |
| 24 | + 'dic_agent_fields_update' => [ |
| 25 | + 'nomeCompleto' => 'full_name', |
| 26 | + 'name' => 'name', |
| 27 | + 'documento' => 'cpf', |
| 28 | + 'cpf' => 'cpf', |
| 29 | + 'emailPrivado' => 'email', |
| 30 | + 'telefone1' => 'phone_number', |
| 31 | + ] |
| 32 | + ] |
| 33 | + |
| 34 | + ] |
| 35 | + ) |
| 36 | + ], |
| 37 | + 'AdminLoginAsUser', |
| 38 | + 'RecreatePCacheOnLogin', |
| 39 | + 'SpamDetector' |
9 | 40 | ] |
10 | 41 | ]; |
0 commit comments