grant_type=client_credentials

Jump to solution
Robert28
Community Member

Brand new to Canvas REST API development.

Noticing client_assertion_type, client_assertion, and scope are all required parameters with grant_type=client_credentials via https://canvas.instructure.com/doc/api/file.oauth_endpoints.html#post-login-oauth2-token

Is there a way to use 'grant_type=client_credentials' in a Canvas REST API application without also developing a LTI application?

 

0 Likes
1 Solution
matthew_buckett
Community Contributor

Normally for machine to machine access we create a user account for the external application and then manually generate a long lived token for the application to use: https://community.canvaslms.com/t5/Admin-Guide/How-do-I-manage-API-access-tokens-as-an-admin/ta-p/89

Canvas doesn't support the client_credentials flow to issue tokens for machine to machine API use as far as I'm aware.

View solution in original post