There are 4 updates, 1 comment.
 
 
OpenId Connect / cid:jira-generated-image-avatar-26db87cb-e4df-4780-bd81-217d4fd2c5df OIDC-198 Closed

userinfo endpoint does not support OPTIONS http requests

 
View issue   ยท   Add comment
 

4 updates

 
cid:jira-generated-image-avatar-804e3900-f035-48ca-af69-b170c2a6dca8 Changes by Thomas Mortagne on 15/Oct/26 17:46
 
Fix Version: 2.29.0
Assignee: Thomas Mortagne
Resolution: Fixed
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-804e3900-f035-48ca-af69-b170c2a6dca8 Thomas Mortagne on 15/Oct/26 17:46
 

Fixed by adding CORS support to the endpoints meant to be called directly by JavaScript clients (userinfo, token, JWK set and discovery), as recommended for the userinfo endpoint by OpenID Connect Core 1.0, section 5.3:

  • preflight (OPTIONS) requests are answered with a 204 and the CORS headers
  • Access-Control-Allow-Credentials is never sent, so the browser never sends the XWiki session cookie in a cross origin call
  • the allowed origins can be configured with the oidc.provider.cors.allowedOrigins property in xwiki.properties (any origin by default, an empty list disables CORS)
  • an unsupported HTTP method now produces a 405 error instead of a 500 error

See https://github.com/xwiki-contrib/oidc/commit/9cedda7e812f5a6eb0b41a071847050c4dc990b5