summaryrefslogtreecommitdiffstats
path: root/fikenauth/oauth.go
diff options
context:
space:
mode:
Diffstat (limited to 'fikenauth/oauth.go')
-rw-r--r--fikenauth/oauth.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/fikenauth/oauth.go b/fikenauth/oauth.go
index f899ccb..79d90ea 100644
--- a/fikenauth/oauth.go
+++ b/fikenauth/oauth.go
@@ -65,19 +65,19 @@ func (e *Error) AccessDenied() bool { return e.Code == "access_denied" }
func (c Config) Validate() error {
var missing []string
if c.ClientID == "" {
- missing = append(missing, "fiken.client_id")
+ missing = append(missing, "client_id")
}
if c.ClientSecret == "" {
- missing = append(missing, "fiken.client_secret_file (or FIKEN_CLIENT_SECRET)")
+ missing = append(missing, "client_secret")
}
if len(missing) > 0 {
return fmt.Errorf(
- "no Fiken OAuth app configured: set %s. Create the app in Fiken under "+
+ "no Fiken OAuth app configured: missing %s. Create the app in Fiken under "+
"Brukerinnstillinger -> API, registering %s as the redirect URL",
strings.Join(missing, " and "), c.redirectURL())
}
if _, err := url.Parse(c.redirectURL()); err != nil {
- return fmt.Errorf("fiken.redirect_url %q is not a URL: %w", c.redirectURL(), err)
+ return fmt.Errorf("redirect URL %q is not a URL: %w", c.redirectURL(), err)
}
return nil
}