Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Login on beta not working #1994

Open
trugwaldsaenger opened this issue Jan 8, 2021 · 6 comments
Open

Login on beta not working #1994

trugwaldsaenger opened this issue Jan 8, 2021 · 6 comments
Assignees
Labels

Comments

@trugwaldsaenger
Copy link
Contributor

Unable to login to beta. When trying to login I receive the message "Error:OpenID Connect Provider error: Error in handling response type."

@jurecuhalev
Copy link
Contributor

Maybe @dr0i can see some more specific errors in server logs. I can't fix things on server and it seems like a possible server configuration issue.

@dr0i dr0i self-assigned this Jan 8, 2021
@dr0i
Copy link
Member

dr0i commented Jan 8, 2021

From the logs:

[auth_openidc:error] [pid 29943] [client xxx ] oidc_util_json_string_print: oidc_util_check_json_error: response contained an "error_description" entry with value: ""Invalid client secret"", ...

Doing a bit of research, seems keycloak's security mechanism. I couldn't find any hint in the configs, revisions nor copies. Is this somehow tied to the SSL cert of the domain (cert was updated last month or so)?
Did a shot in the dark by configuring OIDC_* in oerworldmap/conf/vhost.conf to the same values used at production.
Please test this.

@dr0i dr0i added the bug label Jan 8, 2021
@dr0i dr0i removed their assignment Jan 8, 2021
@jurecuhalev
Copy link
Contributor

It didn't help. I'm still getting the same error.

@dr0i
Copy link
Member

dr0i commented Jan 12, 2021

I have set the OIDC_CLIENT_SECRET in conf/vhost.conf to the value found in:

https://beta.oerworldmap.org/auth ->Clients->account->Credential

I did register to test this myself. Login seems ok. But I got new error:

oidc_util_jwt_verify: parsing JWT failed: [src/jose.c:694: oidc_jwe_decrypt_impl]: encrypted JWT could not be decrypted with any of the 1 keys: error for last tried key is: crypto error

Seems related to https://stackoverflow.com/questions/61240827/mod-auth-openidc-and-cilogon.
Is this an issue for you or is this ok ?

@trugwaldsaenger
Copy link
Contributor Author

I could login with an existing user as well as register a new user. I did not receive the new error you mentioned. So from my side things look OK at the moment :-) !

I will ask some colleagues to do some additional testing...

@jurecuhalev
Copy link
Contributor

I can login on beta now without errors. So I think for beta testing this is OK now. Thank you @dr0i .

@trugwaldsaenger in the future, we'll probably need to reinvest into deeper understanding of Keycloak (or once again move to a different identity provider)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants