Skip to content

Commit

Permalink
Merge pull request #271 from DasSkelett/fix/no-sessionstore
Browse files Browse the repository at this point in the history
  • Loading branch information
DasSkelett authored Nov 19, 2022
2 parents 7f7460b + ce46fd7 commit d82e5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/authnz/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type AuthMiddleware struct {
func New(config authconfig.AuthConfig, claimsMiddleware authsession.ClaimsMiddleware) (*AuthMiddleware, error) {
router := mux.NewRouter()
var storeSecret []byte
if config.SessionStore.Secret == "" {
if config.SessionStore == nil || config.SessionStore.Secret == "" {
storeSecret = []byte(authutil.RandomString(32))
} else {
var err error
Expand Down

0 comments on commit d82e5c9

Please sign in to comment.