|
@@ -11,7 +11,7 @@ import (
|
|
|
|
|
|
func generateSSORequestURL(config SsoConfig) string {
|
|
|
// Build the query string payload
|
|
|
- payload := fmt.Sprintf("nonce=%s&return_sso_url=%s", config.uuid, config.returnEndpoint)
|
|
|
+ payload := fmt.Sprintf("nonce=%s&return_sso_url=%s", config.Uuid, config.ReturnEndpoint)
|
|
|
|
|
|
// Base64 encode the payload
|
|
|
base64Payload := base64.StdEncoding.EncodeToString([]byte(payload))
|
|
@@ -20,9 +20,9 @@ func generateSSORequestURL(config SsoConfig) string {
|
|
|
URLEncodedPayload := url.QueryEscape(base64Payload)
|
|
|
|
|
|
// Get a hex signature for this payload with the sso secret
|
|
|
- hexSignature := computeHmac256(base64Payload, config.secret)
|
|
|
+ hexSignature := computeHmac256(base64Payload, config.Secret)
|
|
|
|
|
|
- ssoURL := fmt.Sprintf("%s?sso=%s&sig=%s", config.endpoint, URLEncodedPayload, hexSignature)
|
|
|
+ ssoURL := fmt.Sprintf("%s?sso=%s&sig=%s", config.Endpoint, URLEncodedPayload, hexSignature)
|
|
|
|
|
|
return ssoURL
|
|
|
}
|