-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: authentication capabilities (#369)
authentication capabilities: - BTP SAP Cloud IdP - BTP Standard IdP - Office 365 - Basic Auth - custom auth fields authentication works for single browser scenarios as well as multiremote. credentials and authentication types are provided at design-time through configuration and don't require code changes. docs still todo, short version is: - standard: provide env vars `wdi5_username` and `wdi5_password` w/ respective values - multiremote: provide env var s`wdi5_$remote-id_username` and `wdi5_$remote-id_password` w/ respective values - add `wdi5:authentication` config object (see `src/types/wdi5.types.ts` → `*Authenticator`) to the `capabilities` section of the `wdio.conf.(t|j)s` file addressing #207 Co-authored-by: scoen <[email protected]> Co-authored-by: dominik.feininger <[email protected]> Co-authored-by: Constantin Lebrecht <[email protected]>
- Loading branch information
1 parent
3578dd0
commit 9c23bda
Showing
32 changed files
with
5,917 additions
and
46,647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: auth | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
# relevant | ||
- "client-side-js/**" | ||
- "examples/**" | ||
- "scripts/**" | ||
- "src/**" | ||
# don't run on changes to these | ||
- "!.husky/**" | ||
- "!.vscode/**" | ||
- "!docs/**" | ||
- "!.*" | ||
- "!*.md" | ||
- "!*.cjs" | ||
|
||
env: | ||
wdi5_username: ${{secrets.BTP_LOGIN}} | ||
wdi5_one_username: ${{secrets.BTP_LOGIN}} | ||
wdi5_two_username: ${{secrets.BTP_LOGIN}} | ||
wdi5_password: ${{secrets.BTP_PASSWORD}} | ||
wdi5_one_password: ${{secrets.BTP_PASSWORD}} | ||
wdi5_two_password: ${{secrets.BTP_PASSWORD}} | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14, 16, 18, 19] | ||
|
||
steps: | ||
- name: update chrome | ||
run: | | ||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | ||
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | ||
sudo apt-get update | ||
sudo apt-get --only-upgrade install google-chrome-stable | ||
# check chrome version | ||
google-chrome --version | ||
- name: check out repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: use node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
cache-dependency-path: "**/package-lock.json" | ||
|
||
# we need this for workspace mgmt | ||
- name: check npm version >= 7 | ||
run: npm --version | ||
- name: update npm | ||
run: | | ||
npm i -g npm@8 | ||
npm --version | ||
# install both module + sample app(s) deps | ||
- name: install packages (wdi5 + sample app(s)) | ||
run: | | ||
npm pkg delete scripts.prepare | ||
npm ci | ||
# build things | ||
- name: build | ||
run: npm run build | ||
|
||
- name: btp/sap cloud id, basic auth, office 365, custom auth | ||
run: npm run test:auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.