Skip to content

Commit

Permalink
Fix ADFS provider and add debug message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger authored and russjones committed Mar 6, 2021
1 parent 7a1e46f commit 66913aa
Show file tree
Hide file tree
Showing 2 changed files with 7 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
5 changes: 4 additions & 1 deletion lib/services/saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ func GetSAMLServiceProvider(sc SAMLConnector, clock clockwork.Clock) (*saml2.SAM
}

// adfs specific settings
if sc.GetAudience() == teleport.ADFS {
if sc.GetProvider() == teleport.ADFS {
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 66913aa

Please # to comment.