(baseUrl url.URL, config map[string]interface{}, debug bool, writer io.Writer)
| 422 | } |
| 423 | |
| 424 | func createAuthContext(baseUrl url.URL, config map[string]interface{}, debug bool, writer io.Writer) AuthenticatorContext { |
| 425 | identityUrl := createIdentityUrl(baseUrl.Host) |
| 426 | request := NewAuthenticatorRequest(fmt.Sprintf("%s://%s", baseUrl.Scheme, baseUrl.Host), map[string]string{}) |
| 427 | context := NewAuthenticatorContext(config, identityUrl, "d7b087788be2154da3ad9d6bc14588f4", false, debug, *request, log.NewDebugLogger(writer)) |
| 428 | return *context |
| 429 | } |
| 430 | |
| 431 | func createIdentityUrl(hostName string) url.URL { |
| 432 | if hostName == "" { |
no test coverage detected