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

Need to display the oauth_code in Json format.

During our Authorization flow using oauth policy. we need to display the oauth code into JSON format currently this is displayed into URL which means the code is appended to callBack URL.

But now rather than appending this, we need to display in JSON format on callback URL which is passed.

@Anil Sagar @Dino @Siddharth Barahalikar could you all have suggested some solution to this would be highly appreciated.

@Dino in below video you showed the Auth code into the browser, thats what exactly is the requirement of ours could you please suggest your input on this.

Solved Solved
0 5 253
1 ACCEPTED SOLUTION

Not applicable

The authorization code being returned as a query parameter attached to the callback is exactly according to the OAuth v2 specification.

It is highly recommended to follow the specs unless you really know what you are doing.

If this approach doesn't work for your use case, OAuth v2 authorization code grant isn't probably the most suitable authentication method. You may consider another authentication method or OAuth v2 grant.

View solution in original post

5 REPLIES 5
Top Solution Authors