Example applications demonstrating how to integrate Authara authentication.
Includes a small example application built with Go + HTMX running behind the Authara Gateway.
- Go
- HTMX
- Chi router
- Docker
- PostgreSQL
- Authara
Clone the repository:
git clone https://github.com/authara-org/authara-starter
cd authara-starterCreate the environment file:
cp .env.example .envStart the stack:
docker compose up --buildOpen the app:
http://localhost:3000
- Public homepage
- Login with Authara
- Protected
/privatepage - Logout flow
- Link to
/auth/account
The example app uses the Authara Go SDK to fetch the current user.
authara-starter
│
├─ docker-compose.yml
├─ .env.example
│
├─ go+htmx
│ ├─ main.go
│ ├─ handlers/
│ └─ Dockerfile
Authara documentation
https://docs.authara.org
Authara repository
https://github.com/authara-org/authara
Authara Go SDK
https://github.com/authara-org/authara-go
MIT