Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@boxyhq/saml20

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boxyhq/saml20 - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

7

dist/saml20.js

@@ -12,2 +12,3 @@ "use strict";

const surnameClaimType = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname';
const nameidFormatEmailAddress = 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress';
function getClaims(attributes) {

@@ -79,6 +80,10 @@ const claims = {};

}
const subjectName = getProp(assertion, 'Subject.NameID');
const subjectNameObj = getExtendedProp(assertion, 'Subject.NameID');
const subjectName = subjectNameObj.result;
if (subjectName && !claims[nameIdentifierClaimType]) {
claims[nameIdentifierClaimType] = subjectName;
}
if (subjectName && subjectNameObj.format === nameidFormatEmailAddress && !claims[emailAddressClaimType]) {
claims[emailAddressClaimType] = subjectName;
}
return {

@@ -85,0 +90,0 @@ audience: getProp(assertion, 'Conditions.AudienceRestriction.Audience'),

2

package.json
{
"name": "@boxyhq/saml20",
"version": "1.2.0",
"version": "1.2.1",
"description": "SAML 2.0 token parser for Node.js",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc