0.0.21 • Published 2 years ago

cds-azure-ad v0.0.21

Weekly downloads
86
License
MIT
Repository
github
Last release
2 years ago

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)
0.0.20

2 years ago

0.0.21

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.16

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago