Need help in oauth2 setup

I have simple google oauth2 setup with permissions calendar and gmail

now what I want is when I login on my app
it goes via normal process but only takes profile and all as in scope for login as usual.
after that I have one more screen where I can toggle on gmail, calendar.

whether to use it or not.

now when I enable toggle for any of it, it should ask google content then enable it.

but I am not able to get this done.

reason: users could disable permission access on app whenever they want

Hi @letmeknow

Welcome to the Auth0 Community!

Thank you for posting your question. If you want to change the scope, you will need to reauthorize the use with the new scope → https://auth0.com/docs/authenticate/identity-providers/adding-scopes-for-an-external-idp#pass-scopes-to-authorize-endpoint

Thanks
Dawid

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.