Getting tokens using postman #2361
nyvelius
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks a lot for this write up! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was just testing an API using Postman and had to figure out how to get Postman working with Hydra / OAuth2. It took me a while to figure out, but it's actually pretty straightforward. Here's a quick guide in case anyone else is wondering.
Create a client using either the ORY Hydra CLI, REST API or one of the SDK:s. Postman will use
https://oauth.pstmn.io/v1/callback
as a callback url, so use this for any url:s set for the client. Be sure to include a client secret.In Postman, fill in the chosen client id and secret. Use
https://oauth.pstmn.io/v1/callback
as a callback url. The auth and access token url:s arehttps://<HYDRA>/oauth2/auth
and.../oauth2/token
. State can be any long string.That's it, press "Get New Access Token" and login as usual.
Beta Was this translation helpful? Give feedback.
All reactions