-
Notifications
You must be signed in to change notification settings - Fork 2
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
Enable token authorization #25
Conversation
No need to use a username when using API token.
ありがとうございます。ですが、今のままでは取り込みたくないです。 ポイントは幾つかあります。 API トークンがユーザーにとって充分に簡単&安全であるならば |
ポインタはこれ。 https://developer.github.com/v3/#authentication ただこれみると、トークンが漏れた場合に、そのユーザーの権限でできることはなんでもできてしまいそう。
この件について、何か反論はありますか? @k-takata |
ざっくり検討した結果、次のような方針。
APIトークン=Oauth2トークンということなら上記にしようと思います。 @k-takata どうでしょうか? |
Personal access tokenのつもりで書いていました。混乱させてすみません。 |
Perlsonal access token にはユーザー名が要るようですが…
僕は今まで Personal access token を Basic Auth でしか試していなかったのですが |
使えます。 |
これに記載されているやり方に
で、OAUTH-TOKEN の部分に、personal access token を指定すると、 |
@k-takata 少し手を食わえてマージしました。ありがとうございました! 🙇 手を加えた内容:
|
ユーザー名を使用しない API トークンのみによる認証を使えるようにしました。
koron/go-github#3 が必要です。