OpenConext / OpenConext-engineblock

OpenConext SAML 2.0 IdP/SP Gateway
14 stars 22 forks source link

Improve IdP debug output #1330

Open cdbesten opened 2 hours ago

cdbesten commented 2 hours ago

The current output of the IdP debug e-mail is a bit messed up.

Current formatting has a weird place of the "Name" value.


IdP

Name Idp name Entity ID https://sts.windows.net/XXXXXXX-e92a-48ea-83c4-0d404781e21f/ Workflow Status: prodaccepted

Attributes

"http://schemas.microsoft.com/identity/claims/tenantid"

Name:

Values:

Warning: http://schemas.microsoft.com/identity/claims/tenantid is not known in the schema "http://schemas.microsoft.com/identity/claims/objectidentifier"

Name:

Values:

Warning: http://schemas.microsoft.com/identity/claims/objectidentifier is not known in the schema

I would expect it to be just a little bit more readable, like for example:


IdP

Name Idp name Entity ID https://sts.windows.net/XXXXXXX-e92a-48ea-83c4-0d404781e21f/ Workflow Status: prodaccepted

Attributes


Name: "http://schemas.microsoft.com/identity/claims/tenantid"

Values:

Warning: http://schemas.microsoft.com/identity/claims/tenantid is not known in the schema

Name: "http://schemas.microsoft.com/identity/claims/objectidentifier"

Values:

Warning: http://schemas.microsoft.com/identity/claims/tenantid is not known in the schema

cdbesten commented 2 hours ago

Ohw, I see 'Name' is not the attrribute name. But the value from attributes.json. Still some reformatting would be nice too make it more user readable friendly ;)