diff --git a/saml/authn_request.go b/saml/authn_request.go index 5abe961..cd30928 100644 --- a/saml/authn_request.go +++ b/saml/authn_request.go @@ -13,6 +13,7 @@ import ( "net/url" "strings" "text/template" + "time" "github.com/jonboulle/clockwork" @@ -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{}