feat(auth): demo-логин ≥6 симв, MultiAuthenticator, UUID v5, v1.3.26
This commit is contained in:
@@ -39,11 +39,15 @@ func main() {
|
||||
|
||||
testMode := os.Getenv("FISSION_TEST_MODE") == "true"
|
||||
|
||||
var authenticator auth.Authenticator
|
||||
var jwtAuth auth.Authenticator
|
||||
if testMode {
|
||||
authenticator = &auth.TestAuthenticator{}
|
||||
jwtAuth = &auth.TestAuthenticator{}
|
||||
} else {
|
||||
authenticator = auth.NewDeckAuthenticator(auth.DefaultDeckAPIs, nil)
|
||||
jwtAuth = auth.NewDeckAuthenticator(auth.DefaultDeckAPIs, nil)
|
||||
}
|
||||
authenticator := &auth.MultiAuthenticator{
|
||||
JWT: jwtAuth,
|
||||
Demo: &auth.DemoAuthenticator{},
|
||||
}
|
||||
|
||||
srv := api.NewServer(api.Config{
|
||||
|
||||
Reference in New Issue
Block a user