github / maven-plugins

Official GitHub Maven Plugins
MIT License
587 stars 197 forks source link

Support token authentication #8

Closed tomdz closed 12 years ago

tomdz commented 12 years ago

It would be great if the plugins could support github's token authentication.

kevinsawicki commented 12 years ago

The plugins do support OAuth2 tokens, are you not having success configuring one?

tomdz commented 12 years ago

I was thinking about https://github.com/blog/170-token-authentication which can serve as a stand-in for passwords. From what I understand, OAuth2 tokens are intended to be used for authorizing applications (e.g. the maven plugin). How would that work in this case ? Is there a way in which I can authorize the maven plugins for my github projects ?

kevinsawicki commented 12 years ago

That older form of API tokens are no longer supported in API v3 which is what the Maven plugins use.

You can use curl to create an OAuth2 for you to be able to use by following the instructions here, under the OAuth Authorizations section. You will want to use the repo scope for your token.

tomdz commented 12 years ago

Neat, thx !