api

command module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: MIT Imports: 20 Imported by: 0

README

README

Running

$ ./postgrest-oauth-server -h
  2018/01/03 21:35:54 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!!!!")
    -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