From 59fccd2cdb6ad1cc42f9b357602f70eb01afacc4 Mon Sep 17 00:00:00 2001 From: flynn Date: Thu, 14 Feb 2019 03:26:33 +0100 Subject: [PATCH] fix params --- src/clj/cat/moauth.clj | 4 ++-- src/clj/cat/routes/oauth.clj | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/clj/cat/moauth.clj b/src/clj/cat/moauth.clj index 84872ef..21eae6f 100644 --- a/src/clj/cat/moauth.clj +++ b/src/clj/cat/moauth.clj @@ -11,9 +11,8 @@ {:client-id (env :oauth-consumer-key) :client-secret (env :oauth-consumer-secret) :authorize-uri (env :authorize-uri) - :redirect_uri (str (env :app-host) "/oauth/oauth-callback") + :redirect-uri (str (env :app-host) "/oauth/oauth-callback") :access-token-uri (env :access-token-uri) - ;:scope "activity profile" }) ; To authorize, redirect the user to the sign in / grant page @@ -42,6 +41,7 @@ "let the user authorize access by redirecting to the signin / grant page of the used oauth api" [] + (log/info "Oauth params: " (oauth2-params)) (authorize-uri (oauth2-params))) (defn get-authentication-response diff --git a/src/clj/cat/routes/oauth.clj b/src/clj/cat/routes/oauth.clj index 346587e..a01ecf5 100644 --- a/src/clj/cat/routes/oauth.clj +++ b/src/clj/cat/routes/oauth.clj @@ -29,8 +29,10 @@ (defn oauth-init "Initiates the Twitter OAuth" [request] - (-> (mo/authorize-api-uri) - found)) + (let [reee (mo/authorize-api-uri)] + (log/info "authorize uri: " reee) + (-> reee + found))) (defn oauth-callback "Handles the callback from adams with the access_token