*: add log events for login, LDAP queries, and SAML responses
This commit is contained in:
@@ -366,6 +366,11 @@ func (p *provider) HandlePOST(s connector.Scopes, samlResponse, inResponseTo str
|
||||
return ident, fmt.Errorf("response did not contain a AttributeStatement")
|
||||
}
|
||||
|
||||
// Log the actual attributes we got back from the server. This helps debug
|
||||
// configuration errors on the server side, where the SAML server doesn't
|
||||
// send us the correct attributes.
|
||||
p.logger.Infof("parsed and verified saml response attributes %s", attributes)
|
||||
|
||||
// Grab the email.
|
||||
if ident.Email, _ = attributes.get(p.emailAttr); ident.Email == "" {
|
||||
return ident, fmt.Errorf("no attribute with name %q: %s", p.emailAttr, attributes.names())
|
||||
|
Reference in New Issue
Block a user