Skip to content

Showing 6 code results for  securecookie  in

of GitLab.org / gitlab-pages

	"github.com/golang-jwt/jwt/v5"
	"github.com/gorilla/securecookie"
	"golang.org/x/crypto/hkdf"
	// https://gitlab.com/gitlab-org/gitlab-pages/-/issues/726
	nonce := securecookie.GenerateRandomKey(12)
	if nonce == nil {
	if nonce == nil {
		// https://github.com/gorilla/securecookie/blob/f37875ef1fb538320ab97fc6c9927d94c280ed5b/securecookie.go#L513
		return "", errInvalidNonce
	"github.com/gorilla/securecookie"
	"github.com/gorilla/sessions"
			//Generate state hash and store requested address
			session.Values["state"] = base64.URLEncoding.EncodeToString(securecookie.GenerateRandomKey(16))