Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brightspace does not support multiple aud values #187

Open
alvan opened this issue May 15, 2024 · 0 comments
Open

Brightspace does not support multiple aud values #187

alvan opened this issue May 15, 2024 · 0 comments

Comments

@alvan
Copy link

alvan commented May 15, 2024

Related to this closed issue: #46

Now in 2024, we found in actual testing that Brightspace allows using the OAuth2 Access Token URL as the value of aud to obtain access tokens. At the same time, Brightspace does not support having two different values ​​in the aud array, which may cause its server-side 500 internal error.

So the current method cannot get access token from the Brightspace API.

MessagePayloadInterface::CLAIM_AUD => [
$registration->getPlatform()->getAudience(),
$registration->getPlatform()->getOAuth2AccessTokenUrl(),
]

On the contrary, just using the OAuth2 Access Token URL as aud works on most platforms including Canvas, saltire and Brightspace. This was the default implementation in earlier releases.

    // $registration->getPlatform()->getAudience(),
    $registration->getPlatform()->getOAuth2AccessTokenUrl(),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant