bump go-pkgz modules, bbolt new url

This commit is contained in:
Dmitry Verkhoturov
2020-04-12 16:09:01 -05:00
committed by Umputun
parent 40eb39f8f0
commit dba77d403d
219 changed files with 43245 additions and 37379 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ package cmd
import (
"path"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
log "github.com/go-pkgz/lgr"
"github.com/pkg/errors"
+2 -2
View File
@@ -14,7 +14,7 @@ import (
"syscall"
"time"
bolt "github.com/coreos/bbolt"
bolt "go.etcd.io/bbolt"
"github.com/dgrijalva/jwt-go"
"github.com/go-pkgz/jrpc"
log "github.com/go-pkgz/lgr"
@@ -860,7 +860,7 @@ func (s *ServerCommand) makeAuthenticator(ds *service.DataStore, avas avatar.Sto
TokenDuration: s.Auth.TTL.JWT,
CookieDuration: s.Auth.TTL.Cookie,
SecureCookies: strings.HasPrefix(s.RemarkURL, "https://"),
SecretReader: token.SecretFunc(func() (string, error) { // get secret per site
SecretReader: token.SecretFunc(func(aud string) (string, error) { // get secret per site
return admns.Key()
}),
ClaimsUpd: token.ClaimsUpdFunc(func(c token.Claims) token.Claims { // set attributes, on new token or refresh