-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot assign null to property Heptacom\\AdminOpenAuth\\Contract\\User::$displayName of type string #33
Comments
Hi @MartinKuhl can you please provide which kind of OIDC Provider you are using? Because this error will occur if you neither have a name, given name + family name, nickname, preferred username nor an email in the user info response. To deduct this we need to understand something that either has something to do with the error handling of a broken access token + user info request cycle or your identity provider has placed its information in an unexpected pattern. |
Hi @JoshuaBehrens , Here is the content of the /.well-known/openid-configuration:
|
@MartinKuhl So within the supported claims we have email, email_verified, preferred_username and name so we should be able to get it. For now we need to setup our own authelia and try to replicate your case. Either you can provide us access to your scenario or we have to be lucky and it will be broken on our side as well ^^ . The application scopes are the scopes, that we send with our token to request these. They are just a string list. The field should not be empty though. Technically it could relate. e.g. when we do not request the scope of User.read (in a Microsoft scenario) we do not get this info. This might be a good hint on that one. Would you mind adding the scopes "profile" and "email" into the database yourself into the table heptacom_admin_open_auth_client, in column config (JSON field) under the key scopes as an array of string? See https://www.authelia.com/integration/openid-connect/introduction/#email for more |
Hi @JoshuaBehrens with the manual adjustment directly in the database, I am now able to login via authelia. |
Looks like there are some additional error in the code: |
Plugin Version
7.0.0
PHP Version
8.3.15
Shopware Version
6.6.9.0
Installation method
Composer
Identity provider
OpenID Connect
What happened?
Everytime I try to connect to Authelia I receive an HTTP 500 error:
{
"errors": [
{
"code": "0",
"status": "500",
"title": "Internal Server Error",
"detail": "Cannot assign null to property Heptacom\AdminOpenAuth\Contract\User::$displayName of type string"
}
]
}
Relevant log output
The text was updated successfully, but these errors were encountered: