You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/authentication.md
+64
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,70 @@ capabilities: {
190
190
191
191
<!-- tabs:end -->
192
192
193
+
### SAP BTP with Client Certificate Authentication
194
+
195
+
?> only available in `wdi5` >= 2
196
+
197
+
This authentication method will authenticate you with the certificate you get from [SAP Passport](https://support.sap.com/en/my-support/single-sign-on-passports.html).
198
+
This way avoids the need to use the login process of the application you are testing.
199
+
It is recommended to put the passphrase in an environment variable.
200
+
For pipelines, you can create the PFX file from the base64 encoded secret and put the passphrase in an environment variable.
201
+
See the [GitHub Actions workflow](https://github.com/ui5-community/wdi5/blob/main/.github/workflows/wdi5-tests_auth.yml#L76) as an example on how to use this authentication method in a pipeline.
202
+
203
+
<!-- tabs:start -->
204
+
205
+
#### **single browser**
206
+
207
+
```js
208
+
baseUrl:"https://your-deployed-ui5-on-btp.app",
209
+
capabilities: {
210
+
// browserName: "..."
211
+
"wdi5:authentication": {
212
+
provider:"Certificate",
213
+
certificateOrigin:"https://accounts.sap.com", // this should always be accounts.sap.com
214
+
certificateUrl:"https://emea.cockpit.btp.cloud.sap/cockpit#/", // this is opened in the browser for authentication, if not specified the configured `baseUrl` is used
// "one" is the literal reference to a browser instance
227
+
one: {
228
+
capabilities: {
229
+
// browserName: "..."
230
+
"wdi5:authentication": {
231
+
provider:"Certificate",
232
+
certificateOrigin:"https://accounts.sap.com", // this should always be accounts.sap.com
233
+
certificateUrl:"https://emea.cockpit.btp.cloud.sap/cockpit#/", // this is opened in the browser for authentication, if not specified the configured `baseUrl` is used
// "two" is the literal reference to a browser instance
240
+
two: {
241
+
capabilities: {
242
+
// browserName: "..."
243
+
"wdi5:authentication": {
244
+
provider:"Certificate",
245
+
certificateOrigin:"https://accounts.sap.com", // this should always be accounts.sap.com
246
+
certificateUrl:"https://emea.cockpit.btp.cloud.sap/cockpit#/", // this is opened in the browser for authentication, if not specified the configured `baseUrl` is used
0 commit comments