Skip to content

Commit

Permalink
Merge pull request #235 from postmanlabs/feature/fix-constructor-prop…
Browse files Browse the repository at this point in the history
…-direct-usage

Update direct access to constructor prototype props to class props.
  • Loading branch information
VShingala authored Jun 20, 2024
2 parents d194827 + 43753f5 commit 1d26167
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/security/schemas/inputs/tokens/SAMLTokenInput.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class SAMLTokenInput {
constructor() {
this.constructor_name = 'SAMLTokenInput';
this.includeToken = '';
this.issuerInfo = '';
this.claims = '';
Expand Down
1 change: 1 addition & 0 deletions lib/security/schemas/inputs/tokens/UsernameTokenInput.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class UsernameTokenInput {
constructor() {
this.constructor_name = 'UsernameTokenInput';
this.includeToken = '';
this.issuerInfo = '';
this.claims = '';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class TransportBindingInput {
constructor() {
this.constructor_name = 'TransportBindingInput';
this.transportToken = '';
this.algorithmSuite = '';
this.layout = '';
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/SOAPHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class SOAPHeader {
'TransportBindingInput': this.processSSLTransport,
'SAMLTokenInput': this.processSAMLToken
};
return handlers[element.constructor.name];
return handlers[element.constructor_name];
}

/**
Expand Down

0 comments on commit 1d26167

Please sign in to comment.