Skip to content

Using Postman for testing

Michel Jung edited this page Apr 17, 2017 · 8 revisions

OAuth

In order to authenticate with Postman, it needs to be added as an OAuth client first:

INSERT INTO oauth_clients (id, name, client_secret, client_type, redirect_uris, default_redirect_uri, default_scope)
VALUES
  ('postman', 'postman', 'postman', 'public', 'https://www.getpostman.com/oauth2/callback',
   'https://www.getpostman.com/oauth2/callback',
   'upload_map upload_mod read_achievements write_achievements read_events write_events');

Then, get an authentication token:

Token Name: faf-java-api
Auth URL: http://localhost:8010/oauth/authorize
Access token URL: http://localhost:8010/oauth/token
Client ID: postman
Client Secret: postman
Scope: upload_map upload_mod read_achievements write_achievements read_events write_events
Grant Type: Authorization Code
Request access token locally: Checked

Afterwards, make sure you use the token for your requests and refresh it as required.

Clone this wiki locally