fyi I wrote a pull request for adding scopes according to
this recommendation:
https://github.com/ory/fosite/pull/806
If you want to give input or changes I am open. I just tried to implement the minimal requirements I have. But the community might have more....