Auth0 Home Blog Docs

Github auth in apache?

apache
authentication
#1

I am trying to use github authentication in apache.
When I am trying to reach 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

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

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:

#2

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!

#4

Could you figure out something from the HAR file?

#5

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.

#6

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!

#7

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

#8

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?

#9

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.

#10

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.

#11

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.

#12

Thank you. This solved the issue.

#13

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!

closed #14

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