Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ask multiple scope in same time #6

Open
GHChrisSu opened this issue Jul 6, 2021 · 1 comment
Open

How to ask multiple scope in same time #6

GHChrisSu opened this issue Jul 6, 2021 · 1 comment

Comments

@GHChrisSu
Copy link

I test multiple time want to ask multiple scope in one request

mbClient.requestAuthorization('auth.user_identity:read and users.profiles:read ', 'http://localhost/moneyButtonSuccess');

follow the docs seems like use and to join the scope but it's not working with error unknown scope

@guilhermemalim
Copy link

I looked at the requests from a fabriik website and saw that they use '+' to separate the scopes:
...&scope=${mbConfig.scopes}&state=${randomString}

mbConfig.scopes like auth.user_identity:read+users.profiles:read.

I think mbClient.requestAuthorization('auth.user_identity:read+users.profiles:read ', 'http://localhost/moneyButtonSuccess'); should do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants