OAuth authentication on REST API /script/ endpoint

Hello,

After some tinkering we were able to allow OAuth2 authentication on our REST API. The /entity/ and /assignment/ endpoints work by just adding the Token to the Authorization header. Sadly, the /script/ endpoint seems to expect an existing session, either through one of the other endpoints or by contacting the /auth endpoint.

Is there any way to allow direct authentication via Bearer token on the /script/ endpoint?