Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browser test tool for OAuth2 "Client Credentials Flow"

Till now, the REST API application we've been developing has used a simple api key passed in as a URL parameter, but we've just switched to using the OAuth2 Client Credentials Flow.

This is the simple workflow in which a client POSTs a key and secret via basic authentication and receives an expiring access token. Unfortunately, simple as it is, it's made it considerably more difficult to do quick tests of the API in a browser, either during development or for our support team to do installation sanity checks.

I've tried OAuth 2.0 Playground and REST Console for Chrome, but both of these only seem to support the more complex Authorization Code Grant workflow. Is there a browser-based tool that supports the Client Credentials flow?

like image 592
David Moles Avatar asked Feb 13 '14 22:02

David Moles


People also ask

What is oauth2 client credentials flow?

The OAuth 2.0 client credentials grant flow permits a web service (confidential client) to use its own credentials, instead of impersonating a user, to authenticate when calling another web service.

How do I use oauth2 swagger?

Describing OAuth 2.0 Using OpenAPI. To describe an API protected using OAuth 2.0, first, add a security scheme with type: oauth2 to the global components/securitySchemes section. Then add the security key to apply security globally or to individual operations: # Step 1 - define the security scheme.


1 Answers

Here's my configuration for testing the client credentials flow using the Chrome extension, Postman.

like image 178
lsklyut Avatar answered Sep 21 '22 09:09

lsklyut