Hello,
I migrated from version 6 to latest version 7 of Jasig, and since then, my
services that use OIDC authentication no longer work. We're getting this
error message:
Argument #2 ($code) must be of type string, null given, called in .
I tried adapting my services using this syntax:
root@cas7:/etc/cas/config# cat ../services/centreon-16.json
{
“@class”: “org.apereo.cas.services.OidcRegisteredService”,
“clientId”: “xxxxx”,
“clientSecret”: “xxxxx”,
“serviceId”:
“http://192.168.14.159/centreon/authentication/providers/configurations/openid”,
“evaluationOrder”: 1,
“name”: “centreon”,
“id”: 16,
“bypassApprovalPrompt”: true,
“accessStrategy”: {
“@class”: “org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy”,
“enabled”: true,
“ssoEnabled”: true,
“requireAllAttributes”: false,
“requiredAttributes”: {
“@class”: “java.util.HashMap”
},
“caseInsensitive”: false
},
“userProfileViewType”: “FLAT”,
“supportedGrantTypes”: [“java.util.HashSet”, [“authorization_code”]],
“supportedResponseTypes”: [“java.util.HashSet”, [“code”]],
“scopes”: [“java.util.HashSet”,
[“openid”,“profile”,“email”,‘groups’,“roles”]],
“includeClaimsInIdToken”: true
}
The logs don't show anything unusual.
Have you ever encountered this problem?
Thank you
Best regards
--
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/5e446222-021c-42c9-83ab-15c96b9bd706n%40apereo.org.