# GitHub Authentication Callback URL?

**URL:** <https://discourse.nodered.org/t/github-authentication-callback-url/31573>\
**Category:** General\
**Created:** [14 August 2020 16:16 UTC](https://discourse.nodered.org/t/github-authentication-callback-url/31573 "2020-08-14T16:16:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stwissel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stwissel/32/126_2.png) [@Stwissel](https://discourse.nodered.org/u/Stwissel)\
**Post date:** [14 August 2020 16:16 UTC](https://discourse.nodered.org/t/github-authentication-callback-url/31573/1 "2020-08-14T16:16:10Z")

</div>

Trying to configure the GitHub Authentication for the NodeRED Admin UI.

In settings I have:

```auto
adminAuth: require("node-red-auth-github")({
    clientID: process.env.GITHUB_CLIENT_ID,
    clientSecret: process.env.GITHUB_CLIENT_SECRET,
    baseURL: process.env.BASE_URL,
    users: [
      { username: "leo", permissions: ["*"] },
      { username: "jonas", permissions: ["*"] },
      { username: "stwissel", permissions: ["*"] },
    ],
  }),

```

BASE\_URL is set to [http://localhost:1880/](http://localhost:1880/)

In Github the callback URL is defined as:  
[http://localhost:1880/auth/strategy/callback](http://localhost:1880/auth/strategy/callback)

The "Sign-in with GitHub" button shows, the github authentication dialogue shows up, but then I end back at the login page.

What do I miss?

I did a second test:  
configured in settings.js httpAdminRoot: "/admin" and set the callback to  
[http://localhost:1880/admin/auth/strategy/callback](http://localhost:1880/admin/auth/strategy/callback) -\> just got an 404

Help is appreciated

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 October 2020 16:16 UTC](https://discourse.nodered.org/t/github-authentication-callback-url/31573/2 "2020-10-13T16:16:13Z")

</div>

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