GlitchOAuth: use glitch as a login method for your website/service


hint: it’s not really oauth

Demo video: Demo: Using Glitch as an login provider - YouTube

Glitch didn’t make it, so I did.

How to login to a website using this

  1. Enter your username, then click “Generate token”
  2. Paste that token into your Glitch profile
  3. Click “Login”, and a new box will appear. This is your login token. Paste it into the website that sent you here.

How to integrate it with your site

It’s very simple. Just have them come to this site (to make it easier for the user, append ?username=USERNAME to the url, and ?redirect=URL to the end of the URL (will redirect as a GET request with a ?token=TOKEN to the redirect param)

Once finished, take the token they provided and send it to /check?token=TOKEN. If a invalid token appears, null will be sent back. Otherwise, it might look something like this

      "description":"hi!\n\\n\nlogin: a5b8b91f13c77e9d1858571b418c1ea6e7492752",

Note: Codes expire after one use because of security reasons

Project | Example

hi! i’m david. I like using node.js, ejs, nunjucks, and php to make websites. I live in the USA :us:


cool idea

maybe you could add some redirect hijinks like the usual oauth to reduce the copy+paste steps in the login flow

1 Like

Good idea. Implemented.

1 Like