From 440d23f463430fe91ec3fcda7a9332e5e26e1740 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sun, 6 Nov 2022 10:58:13 +0100 Subject: [PATCH] added an compiletime test to ensure that SAML is an AuthenticationHandler --- modules/saml/account.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/saml/account.go b/modules/saml/account.go index 49b6084..6afe2d7 100644 --- a/modules/saml/account.go +++ b/modules/saml/account.go @@ -14,12 +14,15 @@ import ( "go.sebtobie.de/httpserver/constants" ) -var defaccount = &account{ - data: map[constants.AccountConstant]any{ - constants.AccountID: uuid.Nil, - constants.AccountAnon: true, - }, -} +var ( + defaccount = &account{ + data: map[constants.AccountConstant]any{ + constants.AccountID: uuid.Nil, + constants.AccountAnon: true, + }, + } + _ auth.AuthenticationHandler = &SAML{} +) func maptoarray(m map[string]any) (output []any) { for k, v := range m {