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

🐛 Bug Report: Invalid scopes when creating OAuth2 session #60

Open
2 tasks done
stnguyen90 opened this issue Sep 16, 2024 · 0 comments
Open
2 tasks done

🐛 Bug Report: Invalid scopes when creating OAuth2 session #60

stnguyen90 opened this issue Sep 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@stnguyen90
Copy link
Contributor

👟 Reproduction steps

  1. Call account.createOAuth2Session() and pass in a list of strings for the scopes

👍 Expected behavior

It should generate a URL where scopes are like scopes[]=user.read&scopes[]=user.write

👎 Actual Behavior

Instead, the scopes get generated like scopes[]=[user.read, user.write].

This is probably due to the invalid handling of the list here:

apiQuery.add("${it.key}[]=${it.value.toString()}")

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant