MattHodge / go-fiber-templ-goth-aad-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Go Fiber App, with Templ and Goth Auth

This project is a simple Go example project which uses:

  • Fiber - a web framework
  • Templ - a HTML templating engine
  • Goth - a multi-provider authentication library for Go
  • Goth Fiber - a wrapper for Goth to use with Fiber

The example uses AAD based authentication.

Running with Air

# Install Air
go install github.com/cosmtrek/air@latest

# Set environment variables
export AUTH_TARGET_APPLICATION_ID="YOUR_AAD_APPLICATION_ID"
export AUTH_CLIENT_SECRET="YOUR_AAD_CLIENT_SECRET"

# Run with Air
air

About


Languages

Language:Go 100.0%