Skip to content
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

Demo fails with "Unable to fetch public keys" #82

Open
EionRobb opened this issue Jun 24, 2024 · 1 comment
Open

Demo fails with "Unable to fetch public keys" #82

EionRobb opened this issue Jun 24, 2024 · 1 comment

Comments

@EionRobb
Copy link

EionRobb commented Jun 24, 2024

Running the demo to call a token issuance is failing with "Unable to fetch public keys".

It looks like JwtValidator.resolvePublicKeyJwks() is connecting to https://discover.did.msidentity.com/v1.0/identifiers/did:web:verifiedid.entra.microsoft.com:07b12f07-657f-4ebe-ac84-cee558d49c71:ef3b2d34-d94d-1c95-71d9-66a073b46237 to download the public keys but the endpoint doesn't accept discovery using that, it returns "discovery_service.web_method_path_not_supported"

The demo JWT issued from the Entra issue API that's failing is

eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dmVyaWZpZWRpZC5lbnRyYS5taWNyb3NvZnQuY29tOjA3YjEyZjA3LTY1N2YtNGViZS1hYzg0LWNlZTU1OGQ0OWM3MTplZjNiMmQzNC1kOTRkLTFjOTUtNzFkOS02NmEwNzNiNDYyMzcjYWM1NzhiNjRhMzNiNDI1NTk5YmQ2MTZhNDJlZTM4MzBtYW5hZ2Vkc2lncDI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI5YmQ3MDAzYy02MzdmLTRmYzgtYWY4ZC04YmFkMDA5ZDRiNGYiLCJpYXQiOjE3MTkxOTQ0NjgsInJlc3BvbnNlX3R5cGUiOiJpZF90b2tlbiIsInJlc3BvbnNlX21vZGUiOiJwb3N0Iiwic2NvcGUiOiJvcGVuaWQiLCJub25jZSI6IlhnSFh6MXpmOWVva293T2l2Wkd6K1E9PSIsImNsaWVudF9pZCI6ImRpZDp3ZWI6dmVyaWZpZWRpZC5lbnRyYS5taWNyb3NvZnQuY29tOjA3YjEyZjA3LTY1N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aRGswWkMweFl6azFMVGN4WkRrdE5qWmhNRGN6WWpRMk1qTTNJaXdpY0dWeWFXOWtYM04wWVhKMFgyUmhkR1VpT2lJeU1ESTBMVEF5SWl3aWNHVnlhVzlrWDJWdVpGOWtZWFJsSWpvaU1qQXlNeTB3TkNJc0ltNWpZWEJmYzJOdmNtVWlPaUl6TmlJc0ltbHpjeUk2SW1oMGRIQnpPaTh2YzJWc1ppMXBjM04xWldRdWJXVWlMQ0pwWVhRaU9qRTNNVGt4T1RRME5qZ3NJbXAwYVNJNklqbGlaRGN3TUROakxUWXpOMll0Tkdaak9DMWhaamhrTFRoaVlXUXdNRGxrTkdJMFppSXNJbVY0Y0NJNk1UY3hPVEU1TkRjMk9IMC5YdkJGbHRRdnI5RmpLZGNqQzB2YktkS0w4b0RoTVpBcXFLdFFQMTlBNHIxZUNralR1SEpwMlVYTHNnbThxZENTZ09oMmVici1jVWdURWg1bVlLRzlUUSJ9.iyr2AqSBuK0TNGQ7AtzPnTxyXtt-dDoZT6ZZLY4GFAxrKURdtRrP088DO83hW0IRES0xFXBJDWpmCWEDIKAwmw

Edit: just wanted to add that the same JWT/url works ok with Microsoft Authenticator

@EionRobb
Copy link
Author

I checked to see what URL the MS Authenticator app uses for verification to see if it just needed the resolverUrl updated, and it looks up the same URL, but the endpoint doesn't respond if the user agent header is not User-Agent: Microsoft-Authenticator/6.2406.4052

Are we expected to host a version of https://discover.did.msidentity.com/v1.0/identifiers/ in order for did:web lookups to work correctly with the wallet library?

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

No branches or pull requests

1 participant