some comments

This commit is contained in:
Livio Amstutz 2022-04-06 11:13:07 +02:00
parent 8b1d405f91
commit b02a2701d3
No known key found for this signature in database
GPG key ID: 26BB1C2FA5952CF0
3 changed files with 10 additions and 2 deletions

View file

@ -30,8 +30,13 @@ func init() {
func main() {
ctx := context.Background()
//this will allow us to use an issuer with http:// instead of https://
os.Setenv(op.OidcDevMode, "true")
port := "9998"
//the OpenID Provider requires a 32-byte key for (token) encryption
//be sure to create a proper crypto random key and manage it securely!
key := sha256.Sum256([]byte("test"))
router := mux.NewRouter()