Code Monkey home page Code Monkey logo

vinukathejana / auth-server Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 389 KB

An authentication server with email password, email magic link and OAuth login (w/ Google, GitHub, Facebook) while allowing the users to secure their profiles with modern 2factor authentication methods such as OTP (One Time Passcode) and PassKeys

Home Page: https://documenter.getpostman.com/view/26265282/2s9YeAAaD4

License: MIT License

Go 94.73% Just 0.82% Lua 4.45%
auth-server authentication go-fiber golang

auth-server's Introduction

Auth Server

An authentication server with all modern authentication methods such as,

  • PassKeys
  • OAuth login with providers such as,
    • GitHub
    • Google
    • Twitter (X)

and with also support for 2 Factor authentication

Links

How to get started ?

  • Create a .env file in the below given format
ACCESS_TOKEN_EXPIRED_IN
ACCESS_TOKEN_MAXAGE
ACCESS_TOKEN_PRIVATE_KEY
ACCESS_TOKEN_PUBLIC_KEY
ADMIN_SECRET
AUTH_CONFIRM_TOKEN_SECRET
DATABASE_URL
DEV_ENV
DOPPLER_CONFIG
DOPPLER_ENVIRONMENT
DOPPLER_PROJECT
FRONTEND_HOSTNAME
FRONTEND_URL
PORT
POSTGRES_DB
POSTGRES_HOST
POSTGRES_PASSWORD
POSTGRES_PORT
POSTGRES_USER
REDIS_CHALLENGE_URL
REDIS_EMAIL_URL
REDIS_RATELIMITER_HOST
REDIS_RATELIMITER_PASSWORD
REDIS_RATELIMITER_PORT
REDIS_RATELIMITER_USERNAME
REDIS_SESSION_URL
REDIS_SYSTEM_URL
REFRESH_TOKEN_EXPIRED_IN
REFRESH_TOKEN_MAXAGE
REFRESH_TOKEN_PRIVATE_KEY
REFRESH_TOKEN_PUBLIC_KEY
RESEND_API_KEY
SESSION_SECRET
  • Run go mod tidy
  • Run docker compose up
  • Run go run cmd/main.go

auth-server's People

Contributors

vinukathejana avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.