authserver

command module
v0.0.0-...-a3c2837 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 6 Imported by: 0

README

Authentication server

Go Go Report Card

This project is in very early development.
It is not currently recommended to use this project anywhere.

A simple authentication server written in Go. Supports password authentication using argon2 hashes as well as passkey authentication.

The authentication page ensures that the redirect path is on the same domain as one of the domains that is configured for the selected app. This prevents redirecting to malicious sites after authentication, even if the authentication cookie is not valid for the selected app.

Database

When a new user signs up, they will be able to use any apps that use this authentication server and they will be able to connect their own apps to it. Connected apps will have a list of domains where the authentication cookie is valid. The creator of the app will have the ability to change the app name, description and domains freely, as well as add other existing users as managers.

There is always at least one administrator user, who can delete any app connections and users. The first created user will always be an administrator. Administrators can give other existing users the administrator role.

The app uses an SQLite3 database that is created in the same directory where the binary is (./authserver.db)

ER diagram

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943
templ: version: v0.3.943

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL