Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn get-login-type-flows2
  2.   "returns the flows containing the login types supported by the homerserver as a hashmap representing the json"
  3.   [login-url]
  4.   (let [login-json-hashmap (http/get login-url)
  5.         login-flows-json-str (:body login-json-hashmap)
  6.         login-flows-json-hashmap (json/read-str)]
  7.     login-flows-json-hashmap))
  8.  
  9. (defn get-login-type-flows
  10.   "returns the flows containing the login types supported by the homeserver as a hashmap representing the json"
  11.   [login-url]
  12.   (-> login-url http/get :body json/read-str))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement