- Set you GOPATH properly (http://golang.org/doc/code.html#GOPATH)
go get github.com/go-soa/auth
go get
if some dependencies are missing- Create
conf/{env}.xml
based onconf/{env}.xml.dist
- Set
$AUTH_SERVICE_ENV
global variable totest
,development
orproduction
go build
./auth initdb - execute data/sql/schema_{adapter}.sql against configured database.
./auth run - starts server.
./auth help [command] - display help message about available commands
- PostgreSQL
- MySQL (not supported yet)
- Commands
- Initialize database
- Start server
- Views
- Registration
- Registration success
- Registration confirmation
- Login
- Logout
- Password recovery
- Password recovery confirmation
- 400
- 404
- 500
- REST API
- Registration
- Registration success
- Registration confirmation
- Login
- Logout
- Password recovery
- Password recovery confirmation
- RPC API
- Registration
- Registration success
- Registration confirmation
- Login
- Logout
- Password recovery
- Password recovery confirmation
- OAuth2 API
- Login
- Me