Skip to content

Commit

Permalink
Add saml component logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Mar 5, 2021
1 parent 6151618 commit 27172f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ const (
// ComponentKube is an Kubernetes API gateway.
ComponentKube = "kubernetes"

// ComponentSAML is a SAML service provider.
ComponentSAML = "saml"

// DebugEnvVar tells tests to use verbose debug output
DebugEnvVar = "DEBUG"

Expand Down
4 changes: 3 additions & 1 deletion lib/services/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ func GetSAMLServiceProvider(sc SAMLConnector, clock clockwork.Clock) (*saml2.SAM

// adfs specific settings
if sc.GetProvider() == teleport.ADFS {
log.Debug("[SAML] setting ADFS values")
log.WithFields(log.Fields{
trace.Component: teleport.ComponentSAML,
}).Debug("setting ADFS values")
if sp.SignAuthnRequests {
// adfs does not support C14N11, we have to use the C14N10 canonicalizer
sp.SignAuthnRequestsCanonicalizer = dsig.MakeC14N10ExclusiveCanonicalizerWithPrefixList(dsig.DefaultPrefix)
Expand Down

0 comments on commit 27172f8

Please sign in to comment.