Skip to content

Commit

Permalink
feat(auth): first PoC with Cert Auth to BTP
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed Nov 6, 2024
1 parent 6f02f00 commit fd67a0b
Show file tree
Hide file tree
Showing 7 changed files with 826 additions and 7,086 deletions.
4 changes: 2 additions & 2 deletions examples/ui5-ts-app/test/e2e/authentication/wdio-base.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const _config: _wdi5Config = {
screenshotPath: join("test", "__screenshots__"),
waitForUI5Timeout: 30000
},
baseUrl: "https://wdi5-sample-app.cfapps.eu20.hana.ondemand.com/basic-auth/",
baseUrl: "https://emea.cockpit.btp.cloud.sap/cockpit",

// browserstack service gets injected later during merge of configs
services: process.env.BROWSERSTACK ? [] : ["ui5"],

specs: [resolve("./test/e2e/Basic.test.ts"), resolve("./test/e2e/Authentication.test.ts")],
specs: [resolve("./test/e2e/Authentication.test.ts")],

maxInstances: 10,
logLevel: "error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { merge } from "ts-deepmerge"
import { config as baseConf } from "./wdio-base.conf.js"

const _config = {
baseUrl: "https://wdi5-sample-app.cfapps.eu20.hana.ondemand.com/xsuaa/",
baseUrl: "https://emea.cockpit.btp.cloud.sap/cockpit",
capabilities: baseConf.capabilities ? [...baseConf.capabilities] : []
}

Expand All @@ -13,7 +13,11 @@ if (process.env.BROWSERSTACK) {
const enhancedCapability = {
...capability,
"wdi5:authentication": {
provider: "BTP"
provider: "Certificate",
certificateOrigin: "https://accounts.sap.com",
certificateUrl: "https://emea.cockpit.btp.cloud.sap/cockpit#/",
certificatePfxPath: "./sap.pfx",
certificatePfxPassword: ""
}
}
return enhancedCapability
Expand All @@ -22,7 +26,11 @@ if (process.env.BROWSERSTACK) {
_config.capabilities = [
{
"wdi5:authentication": {
provider: "BTP"
provider: "Certificate",
certificateOrigin: "https://accounts.sap.com",
certificateUrl: "https://emea.cockpit.btp.cloud.sap/cockpit#/",
certificatePfxPath: "./sap.pfx",
certificatePfxPassword: ""
},
browserName: "chrome",
"goog:chromeOptions": {
Expand Down
Loading

0 comments on commit fd67a0b

Please sign in to comment.