Bugfix
Detail
#28434
OpenAPI: Under certain circumstances no user context in functions in the user context
An API function can be executed in a user context if OpenID authentication is used.
For this purpose, the bearer token passed to the API is inspected and the user specified in it is set as the current user for the function execution.
Problem
Currently, the user name is expected to be set as username in the token introspection response. Under certain circumstances/for certain OpenID providers, the username is transmitted in the parameter sub (aka "Subject"). If this is the case, no username is set at all.
Solution
If nothing is specified in the username field of the response, the sub parameter is read. It should also be possible to specify the name of the field in which the username is contained.
Test
No test.