Tweak token response for ESA1.0

This commit is contained in:
Matthew Ryan Dillon 2015-10-20 16:22:08 -07:00
parent dd4fbc4cf8
commit 88d1bb5fe4
2 changed files with 7 additions and 5 deletions

View file

@ -13,9 +13,11 @@ var (
Middleware *jwt.Middleware
// Config handles JWT middleware configuration
Config = &jwt.Config{
Secret: os.Getenv("SECRET"),
Auth: models.DbAuthenticate,
Claims: claimsFunc,
Secret: os.Getenv("SECRET"),
Auth: models.DbAuthenticate,
Claims: claimsFunc,
IdentityField: "username",
VerifyField: "password",
}
)