# Auth0 with GitHub App (not OAuth app)

**URL:** <https://community.auth0.com/t/auth0-with-github-app-not-oauth-app/41568>\
**Category:** Get Help\
**Created:** [April 22, 2020, 1:15pm UTC](https://community.auth0.com/t/auth0-with-github-app-not-oauth-app/41568 "2020-04-22T13:15:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ffMathy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ffmathy/32/20697_2.png) [@ffMathy](https://community.auth0.com/u/ffMathy)\
**Post date:** [April 22, 2020, 1:15pm UTC](https://community.auth0.com/t/auth0-with-github-app-not-oauth-app/41568/1 "2020-04-22T13:15:01Z")

</div>

I know that Social Login with GitHub works for GitHub OAuth apps, but what if I have a real GitHub app that can be installed by people?

How can I use that with Auth0?

When I try to change my GitHub social login’s secret and key with the one from the GitHub app instead of the GitHub OAuth app, I get an error when I try to install my GitHub app on to my repository.

---

<div class="post-metadata">

**Author:** ![anirudh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anirudh/32/29948_2.png) [@anirudh](https://community.auth0.com/u/anirudh)\
**Post date:** [June 11, 2021, 5:59am UTC](https://community.auth0.com/t/auth0-with-github-app-not-oauth-app/41568/2 "2021-06-11T05:59:17Z")

</div>

Same issue when I try it with my github app. I get " **invalid\_request** : You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn’t find your session. Try logging in again from the application and if the problem persists please contact the administrator." right after the installation upon callback. When I just use it to authenticate a user without installing the app, it works fine.

---

<div class="post-metadata">

**Author:** ![anirudh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anirudh/32/29948_2.png) [@anirudh](https://community.auth0.com/u/anirudh)\
**Post date:** [June 11, 2021, 6:15am UTC](https://community.auth0.com/t/auth0-with-github-app-not-oauth-app/41568/3 "2021-06-11T06:15:08Z")

</div>

I think I’ve worked around this. Use the client-id and secret as-is from the Github App in auth0 and don’t check the “request user authorization (OAuth) during installation” box in the Github App’s settings. That way, your callback URL will be called during the auth flow, but the post installation flow will remain separate.

Also remember to request the user:email permission in the github app for auth0 to be able to work correctly.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 11, 2021, 7:33am UTC](https://community.auth0.com/t/auth0-with-github-app-not-oauth-app/41568/4 "2021-06-11T07:33:44Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 25, 2021, 11:22am UTC](https://community.auth0.com/t/auth0-with-github-app-not-oauth-app/41568/5 "2021-06-25T11:22:45Z")

</div>


