diff --git a/connector/github/github.go b/connector/github/github.go index 4b03b188041b339582298441a64419311ee09c37..c483246b25875ecbb13b85a8524869c21cdc5590 100644 --- a/connector/github/github.go +++ b/connector/github/github.go @@ -130,7 +130,7 @@ func (c *githubConnector) oauth2Config(scopes connector.Scopes) *oauth2.Config { func (c *githubConnector) LoginURL(scopes connector.Scopes, callbackURL, state string) (string, error) { if c.redirectURI != callbackURL { - return "", fmt.Errorf("expected callback URL did not match the URL in the config") + return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q", callbackURL, c.redirectURI) } return c.oauth2Config(scopes).AuthCodeURL(state), nil diff --git a/connector/oidc/oidc.go b/connector/oidc/oidc.go index db9c641f21e93f4979fc637603479795d5e9d466..42be1e89f5c0117fddfd4ad01c928daa73a9cf9c 100644 --- a/connector/oidc/oidc.go +++ b/connector/oidc/oidc.go @@ -136,7 +136,7 @@ func (c *oidcConnector) Close() error { func (c *oidcConnector) LoginURL(s connector.Scopes, callbackURL, state string) (string, error) { if c.redirectURI != callbackURL { - return "", fmt.Errorf("expected callback URL did not match the URL in the config") + return "", fmt.Errorf("expected callback URL %q did not match the URL in the config %q", callbackURL, c.redirectURI) } return c.oauth2Config.AuthCodeURL(state), nil }