Skip to content
Snippets Groups Projects
Commit 44035bb4 authored by Rohith's avatar Rohith Committed by GitHub
Browse files

- fixing the config bug which required a redirection url with no-redirect (#100)

- shifted the version to v1.1.1
parent 79819b54
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ func (r *Config) isValid() error { ...@@ -104,7 +104,7 @@ func (r *Config) isValid() error {
if r.EnableRefreshTokens && (len(r.EncryptionKey) != 16 && len(r.EncryptionKey) != 32) { if r.EnableRefreshTokens && (len(r.EncryptionKey) != 16 && len(r.EncryptionKey) != 32) {
return fmt.Errorf("the encryption key (%d) must be either 16 or 32 characters for AES-128/AES-256 selection", len(r.EncryptionKey)) return fmt.Errorf("the encryption key (%d) must be either 16 or 32 characters for AES-128/AES-256 selection", len(r.EncryptionKey))
} }
if r.SecureCookie && !strings.HasPrefix(r.RedirectionURL, "https") { if !r.NoRedirects && r.SecureCookie && !strings.HasPrefix(r.RedirectionURL, "https") {
return fmt.Errorf("the cookie is set to secure but your redirection url is non-tls") return fmt.Errorf("the cookie is set to secure but your redirection url is non-tls")
} }
if r.StoreURL != "" { if r.StoreURL != "" {
......
...@@ -21,7 +21,7 @@ import ( ...@@ -21,7 +21,7 @@ import (
) )
var ( var (
release = "v1.1.0" release = "v1.1.1"
gitsha = "no gitsha provided" gitsha = "no gitsha provided"
version = release + " (git+sha: " + gitsha + ")" version = release + " (git+sha: " + gitsha + ")"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment