Skip to content

Latest commit

 

History

History

api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Estuary Auth Service API

This is the service rest api for Estuary Auth. It's to decouple the authorization from Estuary core to allow any API developers to easily build authenticated APIs for Estuary.

Install

go build -tags netgo -ldflags '-s -w' -o estuary-auth-api
./estuary-auth-api

Running

create a .env with the following

DB_NAME=
DB_HOST=
DB_USER=
DB_PASS=
DB_PORT=

run the node

./estuary-auth-api

This opens up a port at 1313 by default

Usage

/check-api-key

{
    "Token":"<token>"
}

/check-user-api-key

{
    "Username":"alvinreyes",
    "Token":"<token>"
}

/check-user-pass

{
    "Username":"alvinreyes",
    "Password":"<password>"
}

Remote endpoint

This service api is currently available here https://estuary-auth-api.onrender.com/