Skip to content

Commit

Permalink
small tweak to stuarth's refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ddellacosta committed Jun 29, 2014
1 parent a1439aa commit c978d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/friend_oauth2/workflow.clj
Expand Up @@ -20,8 +20,8 @@
"POSTs request to OAauth2 provider for authorization token."
[{:keys [uri-config access-token-parsefn]} code]
(let [access-token-uri (:access-token-uri uri-config)
query-map (assoc (util/replace-authz-code access-token-uri code)
:grant_type "authorization_code")
query-map (-> (util/replace-authz-code access-token-uri code)
(assoc :grant_type "authorization_code"))
token-parse-fn (or access-token-parsefn util/extract-access-token)]
(token-parse-fn (client/post (:url access-token-uri) {:form-params query-map}))))

Expand Down

0 comments on commit c978d40

Please sign in to comment.