Skip to content

This is an Oauth2 Provider boilerplate application to get you started quickly with your user authentication and authorization.

License

Notifications You must be signed in to change notification settings

Numostanley/auth_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker compose Installation

Clone the repository:

git clone https://github.com/Numostanley/auth_app.git

Enter the root directory.

cd auth_app

Run docker-compose

docker-compose up --build

Manual Installation

Clone the repository:

git clone https://github.com/Numostanley/auth_app.git

Enter the root directory.

cd auth_app

Change the directory to the src folder:

cd src

Install go dependencies:

go mod tidy

Load go dependencies

go mod vendor

Change the PostgreSQL host settings in the env/dev/.env or env/prod/.env file to localhost

PG_HOST="localhost"  // or your database host

Running the Project

go run cmd/auth_app/main.go

NOTE:

Ensure your email settings in the env/dev/.env or env/prod/.env file are properly set up:

EMAIL_USER="[email protected]"  // change to your email user

EMAIL_PASSWORD="ExamplePassword@1"  // change to your email password

EMAIL_HOST="smtp.gmail.com"  // change to your email host

Without the correct email settings, user verification emails will not be sent.

Also change the ISSUER settings in the env file to your application url or host

ISSUER="https://api.example.com/"  # change to your application url

Change the redirect_uris in the src/extras/clients.json file to your application uri

"redirect_uris": "https://api.example.com/v1/admin"

Next:

Ensure you have PostgreSQL properly installed and configured if you are using the manual installation method.
You can also find the Postman API documentation to this project at:
https://www.postman.com/orange-capsule-84916/workspace/auth-app

About

This is an Oauth2 Provider boilerplate application to get you started quickly with your user authentication and authorization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published