-
Notifications
You must be signed in to change notification settings - Fork 231
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
"Could not find a public key for Key ID" error with version 1.28.0 and beyond #454
Comments
Hi @ScottPetit, what kind of connection (social/passwordless/database) is causing this issue? |
Hey @Widcket thanks for getting back to me. The connection in question is a |
@ScottPetit is your Auth0 app using the |
I can confirm that we are using HS256 |
What is your use case for going with |
Hey @Widcket, The mobile app has no knowledge of any of the keys and just forwards the Auth0 response to our server for it to handle pretty much everything. |
The fix is now out in v1.31.1 |
Describe the problem
When logging into version
1.28.0
and later of the SDK using web auth and aconnection
, we receive an errorCould not find a public key for Key ID (kid) "nil"
after putting in valid credentials. The same configuration and credentials work as expected in version1.27.0
and older of the SDK.What was the expected behavior?
Users would continue to be able to login using connections with version
1.28.0
and beyond of the SDK using a presumed valid connection (I say presumed because it works just fine in all previous versions of the SDK). I tried to check the release notes for 1.28.0 to see if anything stuck out but no changes really stuck out. I even tried passing along an issuer although I didn't believe we fell under the custom domain requirement.Reproduction
Our setup has remain unchanged for years and is just
where the
connectionName
is aString
returned from our server after the user enters an email for an SSO based account. In version 1.28.0 and beyond of the SDK that request now returns an errorCould not find a public key for Key ID (kid) "nil"
. Something I found surprising is with logging enabled that request prints out what seem to be valid access credentials to the console before returning that error.Can the behavior be reproduced using the Auth0.swift sample app?
So the Auth0 Sample app doesn't use a
connection
, but I updated the sample app to use a hardcoded connection string that works with version1.27.0
of the SDK and receivedError: missingPublicKey(kid: "nil")
in the logs.clientId
:d7n3lQ3drPFME0YnUoGN1EduzkbR66T1
domain
:helpscout.auth0.com
Environment
Auth0.swift
used: 1.28.0 & 1.31.0The text was updated successfully, but these errors were encountered: