Closed perriea closed 5 years ago
@perriea - Make sure you have configured the plugin as mentioned here https://github.com/gocd-contrib/github-oauth-authorization-plugin/blob/master/INSTALL.md#create-github-oauth-application.
And personal access token must have permission mentioned here.
Please do verify the auth config and permission on the personal access token.
I too am having the same issue. The error above seems to suggest that the code parameter is dropped from the request. Perhaps it's because I'm running the GoCD instance behind a reverse proxy. What are the recommended Apache config settings for running this GoCD plugin behind a reverse proxy with SSL?
@bdpiparva yes, I'm sure ... I have the same case of @swyngaard, is it possible to have an Apache configuration or Nginx example ?
@perriea @swyngaard Not sure if it helps, but can you compare your Apache/NGinx configs with this? https://docs.gocd.org/current/installation/configure-reverse-proxy.html
Thanks for sharing the link above, @arvindsv. It turns out my apache config differed by the following settings:
RequestHeader set X-Forwarded-Proto "https"
<Location />
Order allow,deny
Allow from all
</Location>
Everything is working as expected now.
@swyngaard Great! Thank you for taking the time to come back and confirm. :) I'll close this then, with the assumption that it works for @perriea too. Can reopen if necessary.
I am also experiencing the same issue with NGINX. I reviewed the suggested setup and mine is identical.
I have an error when i must auth with Github plugin
2.2.0-21
and GoCD version:19.1.0
(8469-3885582184c6f7c4bbbeb94239e5dba6f5f772f4
). I use a personal token without filtring teams (just for my tests)An idea ?