Ensure that when user session expires - the user is redirected back to the provider login page.

This commit is contained in:
2024-07-25 09:54:31 +01:00
parent c588d6cd4d
commit 622b11f586
71 changed files with 29130 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
package objx
import (
"crypto/sha1"
"encoding/hex"
)
// HashWithKey hashes the specified string using the security key
func HashWithKey(data, key string) string {
d := sha1.Sum([]byte(data + ":" + key))
return hex.EncodeToString(d[:])
}