For this guide let's create two scopes:
write. Applications authorized with the
readscope will be able to read public data from our API. The
writescope will let applications change data in our API.
Go to doorkeeper's initializer and add:
The last line with
enforce_configured_scopesensures applications to be able to ask only for configured scopes defined in