-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
Document the use of authenticate() using ENV variable #1085
Comments
I'm not sure what you exact question is here. The service config above looks correct and you should define the mentioned environment variables then authentication is correctly setup. After that you can inject the |
Closing this issue as I consider it answered/solved. Please re-open if you still have problem! |
I have a similar issue as the OP. Configuring the environment is rather trivial, as @acrobat has identified, however troubleshooting issues is difficult because the parameters aren't part of any (obvious?) documentation. For example, take the following
If these are omitted, errors are as we'd expect... - Environment variable not found: "GITHUB_USERNAME".
- Environment variable not found: "GITHUB_SECRET".
- Environment variable not found: "GITHUB_AUTH_METHOD". And although
Common sense says that this is incorrect usage (or perhaps an outdated library?) but my Google Fu is returning very little results, leaving doubt. 🍻 |
I got it working using this, per php-github-api/lib/Github/AuthMethod.php Line 19 in 0e2399c
- GITHUB_AUTH_METHOD=http_password
+ GITHUB_AUTH_METHOD=client_id_header |
In
config/packages/github.yml
, there is:But how to use it?
Not knowing how to use it, I temporarily put the credentials in the code.
The text was updated successfully, but these errors were encountered: