Skip to content

Commit

Permalink
adding a docstring to make-logout-request-xml
Browse files Browse the repository at this point in the history
  • Loading branch information
escherize committed Feb 21, 2024
1 parent 7fb0b3c commit ae43239
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/saml20_clj/sp/request.clj
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@
:headers {"Location" url}
:body ""}))

;; Wanted to call this make-request-xml, but it gets exported in core.clj, which
;; I wanted to call this make-request-xml, but it gets exported in core.clj, which
;; warrants the request prefix
(defn make-logout-request-xml [& {:keys [request-id instant idp-url issuer user-email]
:or {
instant (format-instant (t/instant))}}]
(defn make-logout-request-xml
"Generates a SAML 2.0 logout request, as a hiccupey datastructure."
[& {:keys [request-id instant idp-url issuer user-email]
:or {instant (format-instant (t/instant))}}]
(assert (non-blank-string? idp-url) "idp-url is required")
(assert (non-blank-string? issuer) "issuer is required")
(assert (non-blank-string? user-email) "user-email is required")
Expand Down

0 comments on commit ae43239

Please sign in to comment.