I’m trying to authenticate a UI kit app with oauth similar to this google example use-an-external-oauth-2.0-api-with-fetch.
Using Azure AD I can successfully authenticate (hasCredentials() = true) but when I try and fetch my webservice I get this error
{“code”:401,“message”:“IDX10516: Signature validation failed. Unable to match key: \nkid: ‘POSSDS2ZQpJ3UjYXYGl8lV0’. \nNumber of keys in TokenValidationParameters: ‘0’. \nNumber of keys in Configuration: ‘1’. \nExceptions caught:\n ‘[PII of type ‘System.Text.StringBuilder’ is hidden. For more details, see https://aka.ms/IdentityModel/PII.]’. \ntoken: ‘[PII of type ‘System.IdentityModel.Tokens.Jwt.JwtSecurityToken’ is hidden. For more details, see https://aka.ms/IdentityModel/PII.]’. Valid Lifetime: ‘True’. Valid Issuer: ‘False’”}
Using Slack I can successfully authenticate (hasCredentials() = true) but when I try and fetch my webservice I get this error
{“code”:401,“message”:“IDX12741: JWT: ‘[PII of type ‘System.String’ is hidden. For more details, see https://aka.ms/IdentityModel/PII.]’ must have three segments (JWS) or five segments (JWE).”}
Is there any way I can debug this further? Maybe return the JWT so I can decode it?
Any other suggestions, I’ve burnt a lot of hours trying to get this working. Thanks.