-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
identifierFormat: null causes AD FS error on metadata importing #338
Comments
I found that this had been previously reported in #234 but was closed without noting that ADFS at least will reject the empty tag. The SAML 2.0 Core spec at 2.2.2 Complex Type NameIDType defines the element. I'm not an XML schema expert but I don't think an empty element is permitted for this type. |
Issue #1: When SAML Request is built, identifierFormat = null should not default to Issue #2: When metadata is generated (generateServiceProviderMetadata method), the statement
|
@ahavriluk You mean you have a pull request ready on your local machine? Just push it your own Github account, which already have permission to push to. If you cloned this project, you may need to set up a second remote for your account. Review Github documentation on creating pull requests. |
Thanks, I adjusted this and got past that AD FS import error. On invoking the init to do the SamlRequest POST ADFS is giving an error though:
Any idea how to resolve this? I was not sure with this library how to generate assertions/claims in the AuthRequest or setup and convey to IDP that we want to get a set of attributes back like email... ? How to use this: "attributeConsumingServiceIndex" . ? (I just put it to "1" and it didn't help. |
Did you setup Relying Party end points in ADFS? |
Added a conditional statement to set NameIDFormat only if identifierFormat is specified in options. This should prevent an error in AD FS when identifierFormat set to null: node-saml#338
Added a conditional statement to set NameIDFormat only if identifierFormat is specified in options. This should prevent an error in AD FS when identifierFormat set to null: node-saml#338
Added a conditional statement to set NameIDFormat only if identifierFormat is specified in options. This should prevent an error in AD FS when identifierFormat set to null: #338
This was merged in #375 Closing. |
When
identifierFormat: null
the passport-saml generated metadata with a tag<NameIDFormat/>
which causes an error in AD FS:The value 'NameIDFormat' must be an absolute URI
.Setting the
identifierFormat: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
allows importing the metadata file successfully.Suggestion: when identifierFormat is set to null, generate urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
The text was updated successfully, but these errors were encountered: