extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Dub] OAuth Login Failes with Invalid Scopes

Open oupadhyay opened this issue 1 year ago • 4 comments

Extension

https://www.raycast.com/dubinc/dub

Raycast Version

1.89.1

macOS Version

15.2

Description

When signing in, I get an error. Works after adding each scope individually

- https://app.dub.co/oauth/authorize?...&response_type=code&scope=links.write+tags.write+workspaces.read+domains.read&...
+ https://app.dub.co/oauth/authorize?...response_type=code&scope=links.write&...
+ https://app.dub.co/oauth/authorize?...response_type=code&scope=tags.write&...
+ https://app.dub.co/oauth/authorize?...response_type=code&scope=workspaces.read&...
+ https://app.dub.co/oauth/authorize?...response_type=code&scope=domains.read&...

Steps To Reproduce

Attempt OAuth sign in after installing.

Current Behaviour

Invalid OAuth Request
custom: scope: Invalid scopes 

Expected Behaviour

Expected to allow me to login with all scopes at once.

oupadhyay avatar Jan 22 '25 21:01 oupadhyay

Thank you for opening this issue!

🔔 @quuu @jfkisafk @steven-tey @devkiran you might want to have a look.

💡 Author and Contributors commands

The author and contributors of dubinc/dub can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Jan 22 '25 21:01 raycastbot

@steven-tey @devkiran was there a change to the scopes for auth login? Looks like scopes on the raycast extension side hasn't changed:

https://github.com/raycast/extensions/blob/9e6d7695e7ff55127d1d506ba2ae9aebaed13d6c/extensions/dub/src/api/oauth.ts#L17-L19

jfkisafk avatar Jan 24 '25 13:01 jfkisafk

Thank you for reporting this issue. It was already fixed. Can you try again?

devkiran avatar Jan 27 '25 04:01 devkiran

Just tested again after uninstalling. Confirm that it is now fixed. Thanks

oupadhyay avatar Jan 27 '25 05:01 oupadhyay