api

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2017 License: MIT Imports: 20 Imported by: 0

README

README

Running

$ ./postgrest-oauth-server -h
2017/11/10 19:30:50 Started!
Usage of ./postgrest-oauth-server:
  -accessTokenJWTSecret string
    	Secret key for generating JWT access tokens (default "morethan32symbolssecretkey!!!!!!")
  -accessTokenTTL int
    	Access token TTL in seconds (default 7200)
  -cookieBlockKey string
    	Block key for cookie creation. 16, 24 or 32 random symbols are valid (default "16charssecret!!!")
  -cookieHashKey string
    	Hash key for cookie creation. 64 random symbols recommended (default "supersecret")
  -dbConnString string
    	Database connection string (default "postgres://user:pass@localhost:5432/test?sslmode=disable")
  -refreshTokenJWTSecret string
    	Secret key for generating JWT refresh tokens (default "notlesshan32symbolssecretkey!!!!")
  -templateName string
    	Name of template html file (default "index.html")
  -templatePath string
    	Path to template html file. With trailing slash (default "./")
  -validateRedirectURI
    	Whether validate redirect URI or not. Handy for development (default true)

Testing with Newman

$ cd ./example
$ docker-compose -f docker-compose.yml up -d --build
$ cd ../
$ newman run --bail --ignore-redirects --global-var host=localhost ./postgrest-oauth-server.postman_collection.json

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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