-
Notifications
You must be signed in to change notification settings - Fork 30
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
oidc-agent fails with "Could not find a public client for this issuer." when adding multiple shortname for a single issuer #561
Comments
Update: I realized only now that even after flushing my So it seems the bug is not due to version history, but still present in current versions. |
Which version of oidc-agent are you using? |
In any case, please also check |
For version 5, my {
"issuer": "https://login.helmholtz.de/oauth2",
"register": "https://login.helmholtz.de/",
"pubclient": {
"client_id": "public-oidc-agent",
"client_secret": "rE9CsA4T4UkgSVccErSD"
}
} |
@marcvs That's also how it looks for me. |
I'll look into it. But you're right it is very likely linked to the (not) trailing slash. I'll look into it how it might be improved. |
Indeed. In fact, I think the main issue is that |
From what I had in my head and also when I looked into the code and what I tested, I would say that oidc-agent should handle the case where there is one form in the Could you please try (again) the following:
|
This did in fact work correctly. No matter how many accounts I add, the config does not break. 👍 Would it be possible that an older |
Trying to execute:
did yield the error:
for me, while this issuer clearly has a public client defined in shipped config. This was seen on a system using
oidc-agent
since version 3.3.1.Running:
fixed it, i.e.
oidc-gen
worked fine again with the same commandline.Presumably, the
~/.config/oidc-agent/issuer.config
was broken. Checking the old one, I find:Note the different canonicalization, i.e. one of the two contained an additional
/
for the issuer. Probably that confusedoidc-agent
?I'm not sure this is a bug (or at least not a bug still present in the current code), but since it may hit other users, I am wondering whether there would be a way to handle this case.
The text was updated successfully, but these errors were encountered: