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

The UserToken PolicyId is made unique per server instance #1664

Merged

Conversation

mrsuciu
Copy link
Contributor

@mrsuciu mrsuciu commented Jan 13, 2022

The UserToken PolicyId is made unique per server instance as in the specification.

@mrsuciu mrsuciu requested a review from mregen January 13, 2022 14:49
@@ -819,25 +819,15 @@ public virtual UserTokenPolicyCollection GetUserTokenPolicies(ApplicationConfigu

if (String.IsNullOrEmpty(policy.SecurityPolicyUri))
{
// ensure each policy has a unique id.
if (description.SecurityMode == MessageSecurityMode.None)
{
// ensure a security policy is specified for user tokens.
clone.SecurityPolicyUri = SecurityPolicies.Basic256;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if nowadays this should default to Basic256Sha256?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that would be better

@mrsuciu mrsuciu merged commit c90ba80 into OPCFoundation:release/1.4.367 Jan 14, 2022
@mrsuciu mrsuciu deleted the release/1.4.367UniquePolicyId branch January 14, 2022 09:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants