Canvas Studio OAuth authorization does not send `state` parameter to callback

robertknight
Community Member

I am working on an integration that uses the Canvas Studio API. In testing this API I have encountered an issue that the `state` query parameter which is passed to the authorization endpoint (`/api/public/oauth/authorize`), is not returned to the callback after a successful authorization on the Canvas Studio side. This parameter is a standard part of the OAuth spec [1] and is used to prevent CSRF. We also use it to persist information about the origin of the request.

[1] https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1

0 Likes