go-auth

command module
v0.0.0-...-7a5b77a Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 4 Imported by: 0

README

go-auth

  • Login flow using Auth0.
  • Auth Middleware on protected route.

Set up

  • Create .env file on the root project.
  • Add the config below

AUTH0_CLIENT_ID=YOUR_CLIENT_ID AUTH0_DOMAIN=YOUR_DOMAIN AUTH0_CLIENT_SECRET=YOUR_CLIENT_SECRET AUTH0_CALLBACK_URL=YOUR_CONFIGURED_CALLBACK_URLS

Create a user on your app:

Run go mod tidy to download the Go dependencies.

Run go run main.go to start the app and navigate to http://localhost:3000/login.

Next steps
  • Add Create Organisation config - to set up multiple tenants each with their own brand customisation.
  • Add / invite users to an organisation.
  • Login to an organisation

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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