added better state management to make OAuth sign-ins HA

This commit is contained in:
0xdcarns
2022-08-04 10:03:39 -04:00
parent 40c4a7842c
commit de91533372
8 changed files with 108 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ const (
auth_key = "netmaker_auth"
)
var oauth_state_string = "netmaker-oauth-state" // should be set randomly each provider login
// var oauth_state_string = "netmaker-oauth-state" // should be set randomly each provider login
var auth_provider *oauth2.Config
func getCurrentAuthFunctions() map[string]interface{} {