Swagger 2.0 Client Credentials Example

4,289 views
Skip to first unread message

Matthew D'Andrea

unread,
Jan 5, 2016, 12:29:22 PM1/5/16
to Swagger
Hi,

I'm trying to figure out how to document a client credentials grant type for OAuth2 with Swagger 2.0.

I've heard that it should be supported, but I'm a bit unclear about how to document it and I couldn't seem to find any good examples of it.

Could anyone please provide an example I could go off of.

Thanks!

Matt

Ron Ratovsky

unread,
Jan 6, 2016, 4:25:04 PM1/6/16
to swagger-sw...@googlegroups.com
Hi Matt,

We refer to “client credentials” as the “application” flow in the spec.
This means you’d need to specify the ‘tokenUrl’ for a complete definition.

Hope this helps,
Ron

Matthew D'Andrea

unread,
Feb 22, 2016, 2:00:12 PM2/22/16
to Swagger
Sorry for the late response.
Thanks for the help!

Are there any good working examples of the "application" flow in Swagger that illustrate "client credentials"?
I couldn't seem to find one.

Thanks,

Matt

Ron Ratovsky

unread,
Feb 22, 2016, 2:02:28 PM2/22/16
to swagger-sw...@googlegroups.com
I’m afraid I don’t have specific examples for that.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthew D'Andrea

unread,
Feb 22, 2016, 2:14:25 PM2/22/16
to Swagger
Thanks.  It would be good to know if anyone has a working example.
Otherwise, I'm kind of stuck.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

Ron Ratovsky

unread,
Feb 22, 2016, 2:21:32 PM2/22/16
to swagger-sw...@googlegroups.com
What are you stuck with? Actually describing the flow? I can jot down an example. It’s pretty much like any other flow, just making sure the tokenUrl is defined.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Matthew D'Andrea

unread,
Feb 24, 2016, 9:29:30 AM2/24/16
to Swagger
Thanks Ron.

I need an example of the flow that will allow it to prompt for a client ID and client secret, communicate that to the tokenUrl and get back an OAuth token.

Viplav Fauzdar

unread,
May 17, 2017, 4:35:34 PM5/17/17
to Swagger
Matthew,

Were you ever able to figure this out?
Reply all
Reply to author
Forward
0 new messages