I’m trying to make a rule in Auth0 to avoid specifying multiple scopes for authentication requests.
Basically, I want to specify one scope or provide no scope during authentication and respond with an
id_token containing a default subset of the user profile. I found some rule documentation and managed to edit the scope query
context.request.query.scope.match(/\S+/g) and also managed to set values into the
context.idToken'my_param] = user.my_param.
Although it works through rule debugging UI, but it does not work when actually trying to authenticate.
Is it possible to accomplish this by making rule or using some other feature of Auth0? If not, is there another workflow we should use?