Permalink
Browse files

rename make-request to make-auth-request

  • Loading branch information...
1 parent acffe47 commit d2dfa58d90d1c5d98ac366bd60dadb6a27941d38 @DerGuteMoritz DerGuteMoritz committed Jun 28, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/clj_oauth2/client.clj
  2. +1 −1 test/clj_oauth2/test/client.clj
@@ -6,7 +6,7 @@
(:require [clj-http.client :as http]
[clojure.string :as str]))
-(defn make-request [endpoint & [state]]
+(defn make-auth-request [endpoint & [state]]
(let [uri (parse-uri (:authorization-uri endpoint))
query (assoc (:query uri)
:client_id (:client-id endpoint)
@@ -42,7 +42,7 @@
(future (ring/run-jetty handler {:port 18080})))
(describe "grant-type authorization-code"
- (given [req (make-request endpoint-auth-code "bazqux")
+ (given [req (make-auth-request endpoint-auth-code "bazqux")
uri (parse-uri (:uri req))]
(it "constructs a uri for the authorization redirect"
(and (= (:scheme uri) "http")

0 comments on commit d2dfa58

Please sign in to comment.