{"repo":"stefanbohacek/auth-server","free":true,"listed":false,"github":"https://github.com/stefanbohacek/auth-server","clone":"git clone https://github.com/stefanbohacek/auth-server.git","description":null,"language":"JavaScript","stars":18,"topics":["authentication","fediverse","miauth","oauth"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Authentication server This project is currently under active development and is intended to be self-hosted. How to use Redirect your user to your authentication server while passing the following variables: - method : - fediverse : automatically detect the correct method (oauth or miauth) based on the domain - oauth : tested with Mastodon, Friendica, Pleroma, Akkoma, and GoToSocial - miauth : tested with Misskey and Calckey/Firefish - instance : domain name of the server your user needs to authenticate with (eg. mastodon.social) - scope : required scopes (eg: scope=read:accounts+read:follows ) - app : id of your app the user will be redirected to (see modules/apps.js ) Example URL: Example URL for fediverse platforms that support OAuth: Example URL for fediverse platforms that use MiAuth: Your users will be redirect to the app's redirect url (from modules/apps.js ) with the instance and token parameters passed in the URL. If you're using the automatic fediverse method and an error occurs, the user will be instead redirected to redirect url fail and an error parameter will be passed. Here's an example for when an instance that uses an unsuported fediverse platform is passed: Development 1. Install dependencies with npm install . 2. Rename .env-copy to .env and update the contents of this file. 3. Update modules/apps.js . You can either redirect the user to your app that requires an authentication token: Or you can display the token in the browser for the user to copy: 4. Run t","default_branch":null,"files":null,"tree":[],"storefront":"/r/stefanbohacek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stefanbohacek/auth-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}