Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

RedGuy12/OneAuth

Repository files navigation

OneAuth logo

This is currently unmaintained. Maybe someday I'll come back to this.

OneAuth All-In-One Authentication

Cloud hosted on opeNode.io

About

OneAuth is an all-in-one authentication client that we designed to work seamlessly with any website. We support 7 clients with many more to come.

Supported Clients

  • Discord
  • Email
  • GitHub
  • Google
  • Microsoft
  • Replit
  • Scratch

If you like, you may demo the different clients here.

For Developers

We designed OneAuth so that adding it to your site is as streamlined as possible. When a user clicks “Sign in” on your site, direct them to this URL:

https://auth.onedot.cf/auth?url=<CALLBACK_URI>

After the user clicks on the link and finishes authentication with us, we will redirect them to whatever URL you used in place of <CALLBACK_URL> above. If they allowed sharing their data, then there will be a new query parameter on that URL, code. To retrieve the user’s information, send the following HTTP request, where <CODE> is the value of the said parameter:

GET https://auth.onedot.cf/backend/get_data/?code=<CODE>

NEW!! Language specification - Specify the language to use on pages by adding another parameter to the URL: language. Its value should be a 2-letter language code like en or es. You may follow it by an underscore and a 2-letter country code, e.g. en_GB or es_AR (optional). If a language is not available, it will fall back to the non-country-specific language, then to the users’ browser language. Please note that we do not have many translations, if any. That will change as our translation team grows. If you would like to help us translate, please click here. Create a Transifex account if you do not already have one, then click “Join team”. Thanks for your eagerness to help! (Please note that if your language is not in the list, you will have to scroll down to the bottom and click “Request language” first.)

If they denied sharing their data, then there will not be any new query parameter.

More configuration options are coming soon.