Help with OAuth 2.0 Client Credentials Implementation
We are working on integrating Brightspace with a third-party solution and would like to confirm whether the OAuth 2.0 Client Credentials Flow is supported for authentication. If not, what alternative approach would allow us to implement OAuth 2.0 without requiring user intervention?
Thank you for your guidance!
Answers
-
Currently client credentials auth is not supported. the only solution is to use the refresh token work flow as per
Brightspace API Authentication Guide - OAuth 2.0 - Brightspace
So you would have to do an initial auth using the api user to get the initial access token and refresh token. This can be done external to your application. Then once a valid refresh token is obtained this can then be used in the app to generate new access tokens and refresh tokens, with out requiring additional login by the user.
SeeBrightspace Data Sets - Headless (Non-Interactive) Client Example - Brightspace
on how this is used.