Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authara Examples

Example applications demonstrating how to integrate Authara authentication.

Includes a small example application built with Go + HTMX running behind the Authara Gateway.

Stack

  • Go
  • HTMX
  • Chi router
  • Docker
  • PostgreSQL
  • Authara

Quickstart

Clone the repository:

git clone https://github.com/authara-org/authara-starter
cd authara-starter

Create the environment file:

cp .env.example .env

Start the stack:

docker compose up --build

Open the app:

http://localhost:3000

What this example shows

  • Public homepage
  • Login with Authara
  • Protected /private page
  • Logout flow
  • Link to /auth/account

The example app uses the Authara Go SDK to fetch the current user.

Project structure

authara-starter
│
├─ docker-compose.yml
├─ .env.example
│
├─ go+htmx
│   ├─ main.go
│   ├─ handlers/
│   └─ Dockerfile

Learn more

Authara documentation
https://docs.authara.org

Authara repository
https://github.com/authara-org/authara

Authara Go SDK
https://github.com/authara-org/authara-go

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages