Skip to content
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: client certificates fixes (#34873) and URL pattern support #34939

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion docs/src/api/params.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ Does not enforce fixed viewport, allows resizing window in the headed mode.

## context-option-clientCertificates
- `clientCertificates` <[Array]<[Object]>>
- `origin` <[string]> Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
- `origin` <[string]> Exact origin or chromium enterprise policy style URL pattern that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding yet another pattern will definitely slow things down. If you absolutely need a pattern, use regex.

- `certPath` ?<[path]> Path to the file with the certificate in PEM format.
- `cert` ?<[Buffer]> Direct value of the certificate in PEM format.
- `keyPath` ?<[path]> Path to the file with the private key in PEM format.
Expand Down
12 changes: 8 additions & 4 deletions packages/playwright-client/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9740,7 +9740,8 @@ export interface Browser {
*/
clientCertificates?: Array<{
/**
* Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
* Exact origin or chromium enterprise policy style URL pattern that the certificate is valid for. Origin includes
* `https` protocol, a hostname and optionally a port.
*/
origin: string;

Expand Down Expand Up @@ -14786,7 +14787,8 @@ export interface BrowserType<Unused = {}> {
*/
clientCertificates?: Array<{
/**
* Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
* Exact origin or chromium enterprise policy style URL pattern that the certificate is valid for. Origin includes
* `https` protocol, a hostname and optionally a port.
*/
origin: string;

Expand Down Expand Up @@ -17490,7 +17492,8 @@ export interface APIRequest {
*/
clientCertificates?: Array<{
/**
* Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
* Exact origin or chromium enterprise policy style URL pattern that the certificate is valid for. Origin includes
* `https` protocol, a hostname and optionally a port.
*/
origin: string;

Expand Down Expand Up @@ -21994,7 +21997,8 @@ export interface BrowserContextOptions {
*/
clientCertificates?: Array<{
/**
* Exact origin that the certificate is valid for. Origin includes `https` protocol, a hostname and optionally a port.
* Exact origin or chromium enterprise policy style URL pattern that the certificate is valid for. Origin includes
* `https` protocol, a hostname and optionally a port.
*/
origin: string;

Expand Down
Loading
Loading