Skip to content

Commit

Permalink
Fix a bug that causes renderXML to crash (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumieval authored Jul 19, 2024
1 parent e837904 commit 15bd0bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Network/Wai/SAML2/Request.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module Network.Wai.SAML2.Request (

import Crypto.Random

import Data.Foldable (toList)
import Data.Time.Clock

import Network.Wai.SAML2.NameIDFormat
Expand Down Expand Up @@ -132,7 +133,7 @@ renderXML AuthnRequest{..} =
, ("AssertionConsumerServiceIndex", "1") -- [AuthnRequest]
]
-- [RequestAbstractType]
++ [("Destination", uri) | let Just uri = authnRequestDestination] ))
++ [("Destination", uri) | uri <- toList authnRequestDestination] ))
[NodeElement issuer, NodeElement nameIdPolicy]
-- Reference [RequestAbstractType]
issuer = Element
Expand Down

0 comments on commit 15bd0bc

Please sign in to comment.