enable insecure ssl

This commit is contained in:
flynn 2019-02-14 03:39:08 +01:00
parent b2ba72d6c4
commit aa0f723704

View file

@ -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)))