Using Oauth 2 - Planigle/planigle GitHub Wiki
To register an application:
- Send your application name, redirect URL (what to call in your application once users authorize you) and the permissions you will need (read, backlog (allows editing of the backlog) or admin (allows editing of schedules and people)) to [email protected].
- We will send you your application id and secret.
Once we send your application id and secret, your application can have a user authorize it by:
- Calling https://www.planigle.com/planigle/api/oauth/authorize?client_id={application id}&redirect_uri={redirect URL}&response_type=code&scope={permissions; ex. read+backlog}
- Once the user authorizes you, it will call the redirect URL you provided and will send a parameter called code.
- Your application can then get a token to use in API requests by posting to https://www.planigle.com/planigle/api/oauth/token with the following parameters:
- client_id=application id emailed to you
- client_secret=secret emailed to you
- code=code sent as parameter
- grant_type='authorization_code'
- redirect_uri=redirect URL you provided
- The access token will be in the response as access_token. This can be used in API requests by adding access_token with this value as part of the request's query string (ex. ?access_token={access_token}).
- Here are some REST based API's that can now be accessed: