# Github auth in apache?

**URL:** <https://community.auth0.com/t/github-auth-in-apache/23725>\
**Category:** Get Help\
**Tags:** apache, authentication\
**Created:** [April 9, 2019, 10:57am UTC](https://community.auth0.com/t/github-auth-in-apache/23725 "2019-04-09T10:57:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![magwas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/magwas/32/12337_2.png) [@magwas](https://community.auth0.com/u/magwas)\
**Post date:** [April 9, 2019, 10:57am UTC](https://community.auth0.com/t/github-auth-in-apache/23725/1 "2019-04-09T10:57:26Z")

</div>

I am trying to use github authentication in apache.  
When I am trying to reach [repo.kodekonveyor.com](http://repo.kodekonveyor.com), I get redirected to [https://kode-konveyor.eu.auth0.com/login?state=g6Fo2SBhVVhRUTJ0ZFNqX0xuQWt6NnpqVnRDV0ZYQWRPRlNQaaN0aWTZIGF2MjdZTU5RZDZ4QXVEODFlZl9QdF8xNkpNbFJmUE9lo2NpZNkgSTA4YklJU3BtU1h0WUhvR3R0UHdDa1VLQVBvdkdzdlA&client=I08bIISpmSXtYHoGttPwCkUKAPovGsvP&protocol=oauth2&response\_type=code&scope=openid%20name%20email&redirect\_uri=https%3A%2F%2Frepo.kodekonveyor.com%2Fauth%2Fcallback&nonce=rQFEBtPcyyNs9anwuibmmJqakZMPSFgOkQoFr6ttGd4](https://kode-konveyor.eu.auth0.com/login?state=g6Fo2SBhVVhRUTJ0ZFNqX0xuQWt6NnpqVnRDV0ZYQWRPRlNQaaN0aWTZIGF2MjdZTU5RZDZ4QXVEODFlZl9QdF8xNkpNbFJmUE9lo2NpZNkgSTA4YklJU3BtU1h0WUhvR3R0UHdDa1VLQVBvdkdzdlA&client=I08bIISpmSXtYHoGttPwCkUKAPovGsvP&protocol=oauth2&response_type=code&scope=openid%20name%20email&redirect_uri=https%3A%2F%2Frepo.kodekonveyor.com%2Fauth%2Fcallback&nonce=rQFEBtPcyyNs9anwuibmmJqakZMPSFgOkQoFr6ttGd4)

where I correctly see a button with “github” written on it.  
when I push that button, I get a 404 at

> **[Build software better, together](https://github.com/login/oauth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fkode-konveyor.eu.auth0.com%2Flogin%2Fcallback&scope=user%3Aemail&state=DzAMWeCUrk9qlImPLhKXWg4vZ55rCGVO&client_id=%20Iv1.e37ead34f234dcfe)**
>
> GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

What is the problem, and how to fix it?  
The config is in this gist, as I am not allowed to put more than 3 uris here:

> <https://gist.github.com/magwas/e6e7fa77caa43153530d973b774e3f53>

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [April 9, 2019, 2:48pm UTC](https://community.auth0.com/t/github-auth-in-apache/23725/2 "2019-04-09T14:48:06Z")

</div>

Hey there @magwas and welcome to the Auth0 Community!

I’m happy to assist you with the challenge you are facing. To start, can you get us a HAR file of the broken authentication workflow that you are experiencing and direct message that over to me along with your tenant name? Please be sure to select “Preserve log” to catch redirects and scrub the file of user passwords before passing, thanks!

> **[Generate and Analyze HAR Files](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files)**
>
> Learn how to troubleshoot with HAR files and steps to generate a HAR file.

---

<div class="post-metadata">

**Author:** ![magwas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/magwas/32/12337_2.png) [@magwas](https://community.auth0.com/u/magwas)\
**Post date:** [April 11, 2019, 11:42am UTC](https://community.auth0.com/t/github-auth-in-apache/23725/4 "2019-04-11T11:42:44Z")

</div>

Could you figure out something from the HAR file?

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [April 11, 2019, 12:42pm UTC](https://community.auth0.com/t/github-auth-in-apache/23725/5 "2019-04-11T12:42:11Z")

</div>

Hi @magwas, I have it on my schedule today to review the HAR file and will get back to you to let you know what I find. Thank you for your patience.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [April 11, 2019, 9:38pm UTC](https://community.auth0.com/t/github-auth-in-apache/23725/6 "2019-04-11T21:38:41Z")

</div>

When diving into your HAR file I am not seeing the `id` come across during `404` Github exchange. Can you take a look at that during your exchange? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![magwas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/magwas/32/12337_2.png) [@magwas](https://community.auth0.com/u/magwas)\
**Post date:** [April 15, 2019, 8:35am UTC](https://community.auth0.com/t/github-auth-in-apache/23725/7 "2019-04-15T08:35:32Z")

</div>

Which piece of configuration is related to that id going through?  
I do have an OIDCClientID directive in my apache config.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [April 15, 2019, 9:53pm UTC](https://community.auth0.com/t/github-auth-in-apache/23725/8 "2019-04-15T21:53:56Z")

</div>

After looking at it with a senior engineer on our support team it appears everything is running successfully for the authentication with Auth0 as displayed in the HAR file. However there does to be something going on with Github during this flow. Is there multiple tabs open to Github/login when this occurs?

---

<div class="post-metadata">

**Author:** ![magwas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/magwas/32/12337_2.png) [@magwas](https://community.auth0.com/u/magwas)\
**Post date:** [April 16, 2019, 4:37am UTC](https://community.auth0.com/t/github-auth-in-apache/23725/9 "2019-04-16T04:37:18Z")

</div>

Normally I do have some tabs with github. But I have tested it now with no github open, and the same thing happened. It is reliably not working.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [April 16, 2019, 1:15pm UTC](https://community.auth0.com/t/github-auth-in-apache/23725/10 "2019-04-16T13:15:32Z")

</div>

Let’s give this another look with a minimal setup running in your browser. Snag another HAR file with the “Preserve log” enabled to catch redirects and send it over in a direct message. If you are using Chrome during this instance can you also message the extensions you have enabled as well. Please detail the workflow and I will give this another look to verify with our team. Thanks @magwas.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [April 26, 2019, 9:28pm UTC](https://community.auth0.com/t/github-auth-in-apache/23725/11 "2019-04-26T21:28:52Z")

</div>

I wanted to follow up @magwas, after reviewing your latest HAR file capture with one of our senior support engineers. After more further investigation we were able to reproduce the error you experienced and it appears to be related to your Github Client ID is invalid. I would recommend taking a look at this and verifying you have the correct corresponding data in you dashboard’s connections. I have linked documentation related to this subject below as well. Please let me know if this helps you in your pursuit. Thank you.

[https://auth0.com/docs/connections/social/github](https://auth0.com/docs/connections/social/github)

---

<div class="post-metadata">

**Author:** ![magwas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/magwas/32/12337_2.png) [@magwas](https://community.auth0.com/u/magwas)\
**Post date:** [April 27, 2019, 7:08am UTC](https://community.auth0.com/t/github-auth-in-apache/23725/12 "2019-04-27T07:08:43Z")

</div>

Thank you. This solved the issue.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [April 29, 2019, 12:49pm UTC](https://community.auth0.com/t/github-auth-in-apache/23725/13 "2019-04-29T12:49:29Z")

</div>

Sounds great! I’m happy I could help and if you find you have any questions in the future please be sure to come back and visit us!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [May 14, 2019, 12:49pm UTC](https://community.auth0.com/t/github-auth-in-apache/23725/14 "2019-05-14T12:49:32Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
