Skip to main content

Hi @Architect Trailblazers ,

 

I'm unable to find answers on this so posting it here.

 

Does Salesforce support the JWKS standard? 

 

The JWKS standard in brief - it's a standard that exposes a JWKS endpoint - from which the public keys can be retrieved. This is useful especially for key rotation.

 

My question:

Is there a way for Salesforce to consume a JWKS endpoint to retrieve the public keys "on the fly" before verifying the JWT token?

 

As far as my knowledge goes, this is not possible with the standard JWT Bearer Token Exhcange OAuth flow. (https://help.salesforce.com/articleView?id=remoteaccess_oauth_jwt_flow.htm&type=0)

 

- because the Public Key has to be uploaded against the Connected App - and can't be retrieved on the fly.

 

I understand that we can use the Salesforce-published public keys to verify that the signature in the response is a valid Salesforce signature. (https://help.salesforce.com/articleView?id=remoteaccess_using_id_token.htm&type=5)

 

But can Salesforce consume the published public keys of a different provider's JWKS endpoint and verify the JWT token in the standard JWT Bearer Token flow? 

3 comentarios