这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

added redirect_uri parameter to authentication call (including lib folder) #184

Merged
merged 3 commits into from
Jun 12, 2015

Conversation

mostley
Copy link
Contributor

@mostley mostley commented Jun 12, 2015

github oauth supports different sub paths of the official callback: https://developer.github.com/v3/oauth/

@@ -74,6 +74,7 @@ auth = module.exports =
uri+= "?client_id=#{@options.id}"
uri+= "&state=#{randomstring.generate()}"
uri+= "&scope=#{scopes.join(',')}"
if @options.redirect_uri then uri+= "&redirect_uri=#{@options.redirect_uri}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add return uri line in here? If you see the generated .js file, it looks like coffee-script is introducing a bug by doing return uri inside the if loop.

@mostley
Copy link
Contributor Author

mostley commented Jun 12, 2015

done. Very strange behaviour and nice catch on your end.

@pksunkara
Copy link
Owner

Thanks for the PR.

pksunkara added a commit that referenced this pull request Jun 12, 2015
added redirect_uri parameter to authentication call (including lib folder)
@pksunkara pksunkara merged commit b7cbc7e into pksunkara:master Jun 12, 2015
@mostley
Copy link
Contributor Author

mostley commented Jun 12, 2015

can you bump the version and republish?

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

Successfully merging this pull request may close these issues.

2 participants