*/saml: disable pretty_print, add signature tests

closes #4536

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2023-02-03 15:42:05 +01:00
parent a890b93869
commit 388367785d
8 changed files with 104 additions and 65 deletions

View File

@ -110,7 +110,7 @@ func (a *Application) Logout(sub string) error {
if err != nil {
return err
}
ser := redistore.GobSerializer{}
serializer := redistore.GobSerializer{}
for _, key := range keys {
v, err := pool.Do("GET", key)
if err != nil {
@ -123,7 +123,7 @@ func (a *Application) Logout(sub string) error {
continue
}
s := sessions.Session{}
err = ser.Deserialize(b, &s)
err = serializer.Deserialize(b, &s)
if err != nil {
a.log.WithError(err).Warning("failed to deserialize")
continue