Link Search Menu Expand Document

Client Credentials

This procedure is for gaining access to protected resources, that are not associated with a resource owner.

The first step here is to obtain an access token. This is done by making a POST request to,

https://iris.nitk.ac.in/oauth/token

POST Parameters to be sent along

  • You can use the HTTP_Authorization header to pass encoded client credentials
  • You can also pass the client credentials as query parameters.
{
	grant_type - "client_credentials"
	client_id - The Client ID provided to you by IRIS during signup
	client_secret - The Client Secret provided by IRIS, while registering your app
}

Response

  • access_token - The access token for accessing protected data

This access_token can now be used for further API queries.

Examples

Using HTTP Authorization header:

Using query parameters:

  • Note: Client Credential Flow is not yet supported for all APIs, so while an access token may be obtained, access is restricted for some APIs.