Skip to content

ystv/web-auth

Folders and files

NameName
Last commit message
Last commit date
Aug 29, 2023
Sep 24, 2023
Sep 24, 2023
Sep 24, 2023
Sep 24, 2023
Sep 24, 2023
Sep 24, 2023
Sep 24, 2023
Sep 24, 2023
Oct 9, 2023
Sep 24, 2023
Nov 15, 2021
Aug 29, 2023
Oct 6, 2023
Oct 6, 2023
Oct 22, 2020
May 24, 2023
Oct 6, 2023
Oct 6, 2023
Aug 30, 2023
Sep 24, 2023

Repository files navigation

web-auth

A basic auth package, allowing people to signup, reset passwords, generating API tokens, and view an internal page.

Usage

You can get the latest tagged version with go get github.com/ystv/web-auth, otherwise follow the build instructions.

Copy the .env file as .env.local and set the variables as required

After all that is set you should be able to visit it at :8080.

Dev side note

If you are trying to connect to a database from your dev machine then I can recommend you use the following command to make your life easier.

ssh -L [local port]:127.0.0.1:[db port on remote server] [remote server user and ip]

This will prevent the full deploy being your dev environment and is much quicker.

Building

Both methods require cloning the repo

git clone https://github.com/ystv/web-api

Docker

Execute docker build -t webauth . in the root directory, and you'll have a container webauth:latest.

Static binary

go build -o web-auth

Then use that produced binary along with the usage instructions.