From aa0f723704c7308cb1da9afd602a73577c168a18 Mon Sep 17 00:00:00 2001 From: flynn Date: Thu, 14 Feb 2019 03:39:08 +0100 Subject: [PATCH] enable insecure ssl --- src/clj/cat/moauth.clj | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/clj/cat/moauth.clj b/src/clj/cat/moauth.clj index 21eae6f..47b2ecd 100644 --- a/src/clj/cat/moauth.clj +++ b/src/clj/cat/moauth.clj @@ -60,6 +60,7 @@ :redirect_uri (:redirect-uri oauth2-params)} ;:basic-auth [(:client-id oauth2-params) (:client-secret oauth2-params)] :as :json + :insecure? true })] (println "Access token response:" access-token) (:body access-token))) @@ -71,7 +72,8 @@ [access-token] (let [url (str (env :user-api-uri))] (-> (httpclient/get url {:oauth-token access-token - :as :json}) + :as :json + :insecure? true}) :body) )) @@ -86,7 +88,8 @@ {:form-params {:grant_type "refresh_token" :refresh_token refresh-token} :basic-auth [(:client-id oauth2-params) (:client-secret oauth2-params)] - :as :json})] + :as :json + :insecure? true})] [access-token refresh-token]) (catch [:status 401] _ nil)))