mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
correction config avec OIDC
This commit is contained in:
parent
ab3925885a
commit
0fe4dcacd5
3 changed files with 16 additions and 4 deletions
|
|
@ -23,7 +23,8 @@ const mockConfig = {
|
|||
type: "oidc",
|
||||
OIDC_CLIENT_ID: "your_oidc_client_id",
|
||||
OIDC_CLIENT_SECRET: "your_oidc_client_secret",
|
||||
OIDC_ISSUER_URL: "https://your-issuer.com",
|
||||
OIDC_CONFIG_URL: "https://your-issuer.com",
|
||||
OIDC_ADD_SCOPE: "groups",
|
||||
OIDC_ROLE_TEACHER_VALUE: "teacher-claim-value",
|
||||
OIDC_ROLE_STUDENT_VALUE: "student-claim-value",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -16,11 +16,22 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"oidc":{
|
||||
"type":"oidc"
|
||||
"oidc_gmatte": {
|
||||
"type": "oidc",
|
||||
"OIDC_CONFIG_URL": "https://auth.gmatte.xyz/application/o/evaluetonsavoir/.well-known/openid-configuration",
|
||||
"OIDC_CLIENT_ID": "clientID",
|
||||
"OIDC_CLIENT_SECRET": "clientSecret",
|
||||
"OIDC_ADD_SCOPE": "groups",
|
||||
"OIDC_ROLE_TEACHER_VALUE": "groups_evaluetonsavoir-prof",
|
||||
"OIDC_ROLE_STUDENT_VALUE": "groups_evaluetonsavoir"
|
||||
}
|
||||
}
|
||||
],
|
||||
"simple-login": {
|
||||
"enabled": true,
|
||||
"name": "provider3",
|
||||
"SESSION_SECRET": "your_session_secret"
|
||||
}
|
||||
"Module X":{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class AuthConfig {
|
|||
];
|
||||
|
||||
const requiredOIDCFields = [
|
||||
'OIDC_CLIENT_ID', 'OIDC_CLIENT_SECRET', 'OIDC_ISSUER_URL', 'OIDC_ROLE_TEACHER_VALUE', 'OIDC_ROLE_STUDENT_VALUE'
|
||||
'OIDC_CLIENT_ID', 'OIDC_CLIENT_SECRET', 'OIDC_CONFIG_URL', 'OIDC_ROLE_TEACHER_VALUE', 'OIDC_ROLE_STUDENT_VALUE','OIDC_ADD_SCOPE'
|
||||
];
|
||||
|
||||
const missingFieldsReport = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue