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

Separate oauth scopes with URL-encoded space; fix default config name #73

Merged
merged 2 commits into from
Mar 3, 2021

Conversation

owenthereal
Copy link
Contributor

@owenthereal owenthereal commented Mar 3, 2021

Description of change

As mentioned in https://meroxa.slack.com/archives/C01EV0UP210/p1614804137195500, the value of the scope param of the authorization URL is not separated by URL-encoded space. The browser wasn't opened due to this bug:

cli/cmd/auth.go

Line 175 in 860ae62

err = open.Start(authorizationURL)
. Replace the space with URL-encoded space %20 opens the browser and I was able to authenticate successfully.

Type of change

  • New feature
  • Bug fix
  • Refactor
  • Documentation

How was this tested?

  • Manual tests
  • Unit Tests
  • Deployed to staging

Additional references

https://meroxa.slack.com/archives/C01EV0UP210/p1614804137195500

Mentioned in
https://meroxa.slack.com/archives/C01EV0UP210/p1614804137195500, the
value of the `scope` param of the authorization URL is not separated by
URL-encoded space. That causes the browser wasn't opened (https://github.com/meroxa/cli/blob/860ae625139927fe707f38112e02aa474baa185a/cmd/auth.go#L175).
Replace the space with URL-encoded space `%20` opens the browser and
I was able to authenticate successfully.
@terrancej terrancej changed the title Separate oauth scopes with URL-encoded space Separate oauth scopes with URL-encoded space; fix default config name Mar 3, 2021
@terrancej terrancej merged commit ba23cab into master Mar 3, 2021
@terrancej terrancej deleted the url_encoded_spacce branch March 3, 2021 22:15
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

Successfully merging this pull request may close these issues.

3 participants