
The issue is not with the Power Pages token service itself—it’s with the self-signed certificate you created. Here’s why:
/auth/token endpoint issues tokens signed by Microsoft identity platform keys, not your custom certificate.So, the public key at /auth/publickey will never match your self-signed certificate because the token is not signed with it.
How to Call External APIs Securely:
If your goal is to call an external API from Power Pages: