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

How to use an oauth access token for github authorization? #67

Open
ghost opened this issue Aug 19, 2015 · 1 comment
Open

How to use an oauth access token for github authorization? #67

ghost opened this issue Aug 19, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 19, 2015

The config example only shows user+password auth which has been superceeded for automated use purposes by personal oauth tokens, or even application-wide token. Anyhoo I didn't see any documentation more than the example file on how to set that up:

module.exports = function (poppins) {
    poppins.config = {
...
        // Credentials for user who leaves comments, etc.
        // You may want to load these from a seperate file like `config-credentials.js`, and
        // add this file to your `.gitignore` list
        login: {
            username: 'myrobotname',
            password: 'supersecretpassword'
        },
...
@ghost
Copy link
Author

ghost commented Aug 20, 2015

Looks like metahub, which this is built on top of has a way to do it: https://github.com/btford/metahub

I'm guessing this will work:

module.exports = function (poppins) {
    poppins.config = {
        // Credentials for user who leaves comments, etc.
        // You may want to load these from a seperate file like `config-credentials.js`, and
        // add this file to your `.gitignore` list
        login: {
            username: 'yourTokenHere3098438ef098dsf709834',
            password: 'x-oauth-basic'
        },
...

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

No branches or pull requests

0 participants