Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Edge generating the wrong OAuth2.0 token_type

Not applicable

It should really just return

"token_type": "Bearer",

instead of the current

"token_type": "BearerToken",

which is obviously wrong.

While developers *would* know that they need to use Bearer <token> in the Authorization header. it's just not pretty. And using API consoles like the one on SwaggerHub just fails as it reuses the token_type as the prefix to the token.

Solved Solved
1 17 3,354
1 ACCEPTED SOLUTION

Ohhh, It's just the name in the response. Totally understand.

You can change the response in the proxy using simple policies like JSON -> XML & then using policy like XSL Transformation to change the value to Bearer & Then back to JSON. Also, Extract Variables Policy & Assign Message to change the same to Bearer with out XSL Transformation policy.

Understand that OOB will be lot better & I will pass on the feedback to Engineering Team. You can also do that using Feedback button in new Edge UI left side bar.

When you actually send the token, You actually send Authorization header with prefix "Bearer <TOKENHERE>".

Hope it helps.

View solution in original post

17 REPLIES 17