PackagePackagetypeA library you install and call yourself.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

decodesapsso2

A TypeScript library that decodes a MYSAPSSO2 logon ticket into its user, client, system and validity fields, and returns the signature without validating it, so it never shows a ticket is genuine.

A MYSAPSSO2 cookie taken from a browser session is base64 and unreadable as it stands. decodeSAPSSO2 returns the ticket's version, id, username, client, system, issue time and validity hours; tryDecodeSAPSSO2 returns an error instead of throwing, and startTime and expirationTime turn the last two fields into dates. The signature comes back as a base64 string the package states it does not validate, so decoding a ticket says who it was issued for and when it runs out, never that it is genuine. It is a library installed from npm, with no command line or interface of its own.

Facts

Latestv1.0.0ReleasedLast pushLicenceMIT

Where it sits

Lives in
Provides
AuthenticationABAPAuthenticationcapabilityEstablishing who is calling: validating credentials or tokens, resolving the user, and making that identity available to the application. [Authorization](capability:authorization) decides what that identity may do; [identity provisioning](capability:identity-provisioning) manages its lifecycle across systems.

Who is behind it

Marcello UrbaniMarcello UrbaniPersonMaintains this
In the atlas: maintains 14, contributes to 21
@marcellourbani
maintainer

What it declares

Every artifact

Type
Package
Origin
Independently maintained

As a package

Where it runs
does not say
Distributed through
does not say

Connections1

Install

npm add decodesapsso2

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from marcellourbani/decodesapsso2 under MIT, read
marcellourbani/decodesapsso2/README.mdOn GitHub

SAPSSO2 decoder

This decodes MYSAPSSO2 tickets, does not validate them or attempt

The decoded ticket will look like:

{
  "version": 2,
  "id": "4103",
  "fields": {
    "username": "DEVELOPER   ",
    "client": "001",
    "system": "A4H     ",
    "issueTime": "202502251038",
    "validityhours": 8,
    "Signature": "MIH4BgkqhkiG9w..."
  }
}

The signature is not validated, just exposed as a base64 encoded string

Example usage

import { Validation } from "io-ts"
import { decodeSAPSSO2, tryDecodeSAPSSO2, SAPSSO2Ticket, startTime, expirationTime } from "decodesapsso2"

const rawticket = "" // a base64 ticket, usually found as MYSAPSSO2 cookie in a browser session

// Either an error or a decoded ticker
const ticketValidation: Validation<SAPSSO2Ticket> = tryDecodeSAPSSO2(rawticket)

// a ticket, throws on error
const ticket: SAPSSO2Ticket = decodeSAPSSO2(rawticket)

const ticketStartTime: Date = startTime(ticket)

const ticketExpiration: Date = expirationTime(ticket)

License

This is released under the MIT license

MIT, read

History

Latest

v1.0.0

3downloads per week, npm
Weekly downloads for decodesapsso226 complete calendar weeks from 2026-04-20 to 2026-10-18; the latest total is 3.20 Apr – 26 Apr: 127 Apr – 3 May: 24 May – 10 May: 311 May – 17 May: 318 May – 24 May: 225 May – 31 May: 21 Jun – 7 Jun: 38 Jun – 14 Jun: 315 Jun – 21 Jun: 122 Jun – 28 Jun: 129 Jun – 5 Jul: 26 Jul – 12 Jul: 413 Jul – 19 Jul: 220 Jul – 26 Jul: 227 Jul – 2 Aug: 03 Aug – 9 Aug: 210 Aug – 16 Aug: 317 Aug – 23 Aug: 124 Aug – 30 Aug: 331 Aug – 6 Sept: 67 Sept – 13 Sept: 414 Sept – 20 Sept: 421 Sept – 27 Sept: 228 Sept – 4 Oct: 25 Oct – 11 Oct: 012 Oct – 18 Oct: 3
Authentication
  1. abap_jwt_generatorGenerates signed JSON Web Tokens in ABAPfrom ABAP
  2. @arc-mcp/xsuaa-authXSUAA authentication stack for an MCP server on SAP BTPfrom BTP/BAIP
  3. abap-pwnedpasswordsChecks passwords against Have I Been Pwned from ABAPfrom ABAP
  4. SAP Authorization and Trust Management serviceOAuth server issuing JWTs and holding scopes for BTP appsfrom BTP/BAIP
  5. Cloud Identity ServicesIdentity Authentication and Identity Provisioning as one tenantfrom BTP/BAIP
  6. SAP Customer Identity and Access Management for B2CRegistration, login and consent for customer-facing sitesfrom BTP/BAIP
  7. OAuth 2.0 on SAP BTPOAuth 2.0 grant flows for applications and APIs in Neo regionsfrom BTP/BAIP
  8. com.sap.cds:cds-feature-identityOAuth2 token validation from XSUAA and SAP Cloud Identity Servicesfrom CAP
  9. com.sap.cds:cds-feature-xsuaaFormer XSUAA JWT validation for CAP Java, removed in CAP Java 3.0from CAP
  10. abapOAuthAzureOA2C_SPECIFICS implementation for Microsoft Azure OAuth 2.0 in ABAPfrom ABAP
  11. abap2oauth2ABAP API for OAuth 2.0 authenticationfrom ABAP
  12. abapNTLMHTTP NTLM client for ABAPfrom ABAP
  13. abap_cloud_platformTypeScript library reaching ABAP service instances on Cloud Foundryfrom BTP/BAIP
  14. @marianfoo/sap-mcp-authBrowser login and session module for SAP MCP serversfrom BTP/BAIP
  15. @sap/approuterSAP's Node.js application router in front of business applicationsfrom BTP/BAIP
  16. @sap/cdsCAP Node.js runtimefrom CAP
  17. Cloud ConnectorSAP's on-premises agent linking SAP BTP to customer-network systemsfrom BTP/BAIP
  18. @sap/xssecToken validation and security context for XSUAA and IASfrom CAP
  19. cds-azure-adAzure AD and Azure AD B2C authentication strategy for CAPfrom CAP
  20. @saptools/cf-xsuaaOAuth2 token fetcher for a Cloud Foundry app's XSUAA bindingfrom BTP/BAIP
  21. cds-common-jwt-supportJWT authentication for CAP without xsuaa or xssecfrom CAP
  22. abap-aws-sigv4Signs outbound HTTP calls to AWS APIs with AWS Signature Version 4, directly from ABAP.from ABAP

Details

Sources4
GitHub organisations and accountsdiscovered here, marcellourbanichecked
npm registry, decodesapsso2version, releases, installschecked
github.com/marcellourbani/decodesapsso2tree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv1.0.0
first release
releases and cadence1
discovered viaGitHub organisations and accounts · marcellourbani
first seen in the atlas
ecosystem and domainabap, security-and-compliance
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:marcellourbani-decodesapsso2
JSON
/artifacts/marcellourbani-decodesapsso2.json
MCP
Connecting an agent