CDS pluginCDS plugintypeInstalls into a CAP project and extends the runtime. CAP loads it through cds.requires or the plugin hook.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 →

cds-azure-ad

Azure AD and Azure AD B2C as a custom-defined authentication strategy for CAP through passport-azure-ad, implementing the hook capire documents so the application does not validate tokens itself.

Implements the hook capire documents for custom authentication, so a CAP service can accept tokens from an identity provider outside the SAP platform without the application handling validation itself.

Facts

Latestv0.0.21ReleasedLast pushLicenceMIT

Where it sits

Lives in
Provides
AuthenticationCAPAuthenticationcapabilityEstablishing 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.
Flavors
Node.jsfrom its runtime

Who is behind it

Gregor WolfGregor WolfPersonMaintains this
In the atlas: maintains 17, contributes to 59, wrote 2
@gregorwolf
SAP Mentors & FriendsSAP Mentors & FriendsOrganisationMaintains this
In the atlas: maintains 3
@sapmentors
maintainersVolker BuzekPersonContributes to this
In the atlas: maintains 7, contributes to 53, wrote 2
@vobu
1 contributor

Before choosing this

Conditions

LicenceSAP Developer License Agreement 3.2 CAP§ 1, 2, 3A cds-plugin is used with SAP CAP materials, or an artifact is explicitly identified as a CAP plugin or application.
  • § 1 License. Productive customer applications are limited to SAP BTP or another SAP-licensed platform, and mass extraction to a non-SAP product is restricted except where solely required for SAP interoperability.
  • § 2 Intellectual Property. The agreement retains SAP's rights in the covered materials and limits making APIs, tools or software available to third parties, while preserving ownership of customer applications subject to SAP's underlying rights.
  • § 3 Artificial Intelligence Training. The agreement prohibits use of the covered materials and customer applications for training artificial-intelligence models or systems.
SAP Developer License Agreement 3.2 CAP →
PracticalFunctional boundary

Last released January 2022 at 0.0.21, against a passport strategy Microsoft has since deprecated.

What it declares

Every artifact

Type
CDS plugin
Origin
Independently maintained
Runtime
Node.js

As a CDS plugin

Distributed through
npm

Connections1

cds-azure-ad connectionscds-azure-adPROVIDES→ provides1provides authoredAuthentication

Install

npm add cds-azure-ad

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

README

quoted from sapmentors/cds-azure-ad under MIT, read
sapmentors/cds-azure-ad/README.mdOn GitHub

npm version Package Build

cds-azure-ad - Azure AD and Azure AD B2C Custom-Defined Authentication for SAP CDS (CAP)

This package implements Azure AD and Azure AD B2C support of Custom-Defined Authentication for the SAP Cloud Application Programming Model (CAP). To achieve this, the packages uses passport-azure-ad - Microsoft Azure Active Directory Passport.js Plug-In.

usage in your CAP project

Add this package to your SAP Cloud Application Programming Model project by running:

npm install cds-azure-ad

Then add this configuration to the cds section of your package.json:

  "cds": {
    "requires": {
      "auth": {
        "impl": "cds-azure-ad"
      }
    }
  }

The configuration for the passport-azure-ad BearerStrategy is provided via the following content in the file default-env.json the root folder of this project. The B2C tenant used here is the sample is a tenant provided by Microsoft which is used also for their examples. As this file might inlcude sensitive data it's not included in the git repository.

{
  "VCAP_SERVICES": {
    "xsuaa": [
      {
        "name": "cap-azure-ad-b2c-uaa",
        "label": "azure-ad",
        "tags": [
          "azure-ad"
        ],
        "plan": "space",
        "credentials": {
          "identityMetadata": "https://fabrikamb2c.b2clogin.com/fabrikamb2c.onmicrosoft.com/B2C_1_SUSI/v2.0/.well-known/openid-configuration/",
          "clientID": "e760cab2-b9a1-4c0d-86fb-ff7084abd902",
          "policyName": "B2C_1_SUSI",
          "isB2C": true,
          "validateIssuer": true,
          "loggingLevel": "warn",
          "loggingNoPII": true,
          "passReqToCallback": false
        }
      }
    ]
  },
  "destinations": []
}

Projects using cds-azure-ad

  • cap-azure-ad-b2c – An example project with multiple deployment scenarios (SAP BTP Cloud Foundery, SAP BTP Kyma)
MIT, read

History

Latest

v0.0.21

  1. v0.0.20

  2. v0.0.19

  3. v0.0.18

  4. v0.0.17

  5. v0.0.16

  6. v0.0.15

  7. v0.0.14

  8. v0.0.13

  9. v0.0.12

  10. v0.0.11

  11. v0.0.10

  12. v0.0.9

  13. v0.0.8

  14. v0.0.7

  15. v0.0.6

  16. v0.0.5

  17. v0.0.4

  18. v0.0.3

2downloads per week, npm
Weekly downloads for cds-azure-ad26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 2.27 Apr – 3 May: 464 May – 10 May: 4211 May – 17 May: 2718 May – 24 May: 2925 May – 31 May: 101 Jun – 7 Jun: 78 Jun – 14 Jun: 2415 Jun – 21 Jun: 122 Jun – 28 Jun: 2229 Jun – 5 Jul: 276 Jul – 12 Jul: 1313 Jul – 19 Jul: 920 Jul – 26 Jul: 2227 Jul – 2 Aug: 23 Aug – 9 Aug: 2410 Aug – 16 Aug: 2217 Aug – 23 Aug: 1024 Aug – 30 Aug: 1831 Aug – 6 Sept: 287 Sept – 13 Sept: 3514 Sept – 20 Sept: 721 Sept – 27 Sept: 828 Sept – 4 Oct: 65 Oct – 11 Oct: 2912 Oct – 18 Oct: 119 Oct – 25 Oct: 2
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. decodesapsso2TypeScript decoder for MYSAPSSO2 logon ticketsfrom ABAP
  15. @marianfoo/sap-mcp-authBrowser login and session module for SAP MCP serversfrom BTP/BAIP
  16. @sap/approuterSAP's Node.js application router in front of business applicationsfrom BTP/BAIP
  17. @sap/cdsCAP Node.js runtimefrom CAP
  18. Cloud ConnectorSAP's on-premises agent linking SAP BTP to customer-network systemsfrom BTP/BAIP
  19. @sap/xssecToken validation and security context for XSUAA and IASfrom 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
npm registrydiscovered here, keywords:cdschecked
npm registry, cds-azure-adversion, releases, installschecked
github.com/git+https://github.com/sapmentors/cds-azure-ad.gittree, 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
runtimesnode
latestv0.0.21
first release
releases and cadence21, ~12d median
discovered vianpm registry · keywords:cds
first seen in the atlas
ecosystem and domaincap, security-and-compliance
Contributors1

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:sapmentors-cds-azure-ad
JSON
/artifacts/sapmentors-cds-azure-ad.json
MCP
Connecting an agent