Extend Auth to include a Bearer token#351
Extend Auth to include a Bearer token#351bflyblue wants to merge 1 commit intohaskell-github:masterfrom bflyblue:bearer-auth
Conversation
|
https://developer.github.com/v3/#authentication mentions only |
|
It looks like GitHub is moving away from "OAuth Apps" to "GitHub Apps" for some things which uses a different API, see: https://developer.github.com/apps/differences-between-apps/ To authenticate as a GitHub App a JWT needs to be passed in the Authentication header with the Bearer prefix. I've tried using "token" and it's refused by the API. |
|
I guess https://developer.github.com/v3/#authentication isn't updated because Apps are in preview. Even this is seems safe change to do, I'm not willing to merge (or especially release) as far as
Please use your fork for now, and ping me when preview period over. |
|
Understood! I'll keep this as a fork for now. |
I've been layering the GitHub Apps preview API (https://developer.github.com/v3/apps/) on top of the existing endpoints for a project of mine, but it requires
Authorization: Bearertokens.Would you consider extending the
Authtype to include bearer tokens?FYI: I'm adding the Checks API as well, I don't know if I should send a PR for this when I'm done as it's a developer preview?