Skip to content

Commit

Permalink
saml: truncate issue instant to microseconds (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
austingebauer authored Dec 21, 2023
1 parent b9202f1 commit 20669ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion saml/authn_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"net/url"
"strings"
"text/template"
"time"

"github.com/jonboulle/clockwork"

Expand Down Expand Up @@ -201,7 +202,7 @@ func (sp *ServiceProvider) CreateAuthnRequest(
ar.AssertionConsumerServiceURL = opts.assertionConsumerServiceURL
}

ar.IssueInstant = opts.clock.Now().UTC()
ar.IssueInstant = opts.clock.Now().Truncate(time.Microsecond).UTC()
ar.Destination = destination

ar.Issuer = &core.Issuer{}
Expand Down

0 comments on commit 20669ce

Please sign in to comment.