-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui5-middleware-onelogin): possible to provide certificate to login directly #1079
base: main
Are you sure you want to change the base?
Conversation
@marianfoo : you also need to update the package-lock.json otherwise the build fails |
done |
added property ui5-ecosystem-showcase/packages/ui5-middleware-onelogin/src/index.ts Lines 18 to 28 in e555a5e
usage as object in env like in this sample ui5-ecosystem-showcase/packages/ui5-middleware-onelogin/sample/certificate/.envTEMPLATE Line 3 in e555a5e
or in yaml like this ui5-ecosystem-showcase/packages/ui5-middleware-onelogin/sample/certificate/ui5.yaml Lines 25 to 33 in e555a5e
|
891745a
to
602cf6e
Compare
Created a new case avoid breaking changes, it´s assumed that after network idle the login with cert worked
I changed it to use currently only use one certificate instead of an array of certificates, makes the implementation easier ui5-ecosystem-showcase/packages/ui5-middleware-onelogin/sample/certificate/.envTEMPLATE Lines 3 to 7 in 602cf6e
ui5-ecosystem-showcase/packages/ui5-middleware-onelogin/src/cookieGetter.ts Lines 101 to 109 in 602cf6e
added ui5-ecosystem-showcase/packages/ui5-middleware-onelogin/src/cookieGetter.ts Lines 111 to 122 in 551dc58
|
@uxkjaer @petermuessig @vobu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @marianfoo as we spoke about it, I had a look. Just some general comments/feedback/hints from my side. hth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 14 out of 29 changed files in this pull request and generated no suggestions.
Files not reviewed (15)
- packages/ui5-middleware-onelogin/package.json: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/.envTEMPLATE: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/.gitignore: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/package.json: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/webapp/i18n/i18n.properties: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/webapp/i18n/i18n_de.properties: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/webapp/i18n/i18n_en.properties: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/webapp/index-cdn.html: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/webapp/index.html: Language not supported
- packages/ui5-middleware-onelogin/sample/certificate/webapp/manifest.json: Language not supported
- packages/ui5-middleware-onelogin/lib/index.js: Evaluated as low risk
- packages/ui5-middleware-onelogin/README.md: Evaluated as low risk
- packages/ui5-middleware-onelogin/lib/cookieGetter.js: Evaluated as low risk
- packages/ui5-middleware-onelogin/sample/certificate/webapp/model/formatter.js: Evaluated as low risk
- packages/ui5-middleware-onelogin/sample/certificate/webapp/controller/BaseController.js: Evaluated as low risk
fix #1078
i added a sample app to login to BTP Cockpit
TODO:
looks like a login page, reloading...
clientCertificates
, currently just use some of the directlyClientCertificate
is currently a Array Object Property as defined in playwright api reference.useCertificate
like i did in the sample?ClientCertificate
is only used ifuseCertficate
is true andClientCertificate
is defined.Playwright API Reference for
clientCertificates
:https://playwright.dev/docs/api/class-testoptions#test-options-client-certificates
Current Output