Skip to content
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

Empty default ID attribute fails builds #49

Open
mrinalwahal opened this issue Oct 11, 2019 · 1 comment
Open

Empty default ID attribute fails builds #49

mrinalwahal opened this issue Oct 11, 2019 · 1 comment

Comments

@mrinalwahal
Copy link

Just copy pasting the exact Signing code from README, produces the following error. And so does in complex code whenever I try it.

panic: Missing ID attribute

When I look closely into the source code, the default ID attribute that is being set has an empty value. And I can't even find any option to set the ID attr, since in my XML the attribute is actually referenceId and not ID.

@joesiltberg
Copy link

The SigningContext has an IdAttribute you can set before signing (there's also an IdAttribute in ValidationContext which can be set before validating).

Is that what you're looking for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants