Grant permissions for using the oauth2 server.