Skip to content

Commit

Permalink
Add signing_private_key Field to Update SAML Connection (#360)
Browse files Browse the repository at this point in the history
Co-authored-by: Stytch Codegen Bot <[email protected]>
  • Loading branch information
ci-stytch and Stytch Codegen Bot authored Feb 19, 2025
1 parent d09cc6f commit 05f3b21
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dist/b2b/sso_saml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/b2b/sso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export interface X509Certificate {
issuer: string;
created_at?: string;
expires_at?: string;
updated_at?: string;
}

// Request type for `sso.authenticate`.
Expand Down
7 changes: 7 additions & 0 deletions lib/b2b/sso_saml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ export interface B2BSSOSAMLUpdateConnectionRequest {
| "salesforce"
| "shibboleth"
| string;
/**
* A PKCS1 format RSA private key used for signing SAML requests. Only PKCS1 format (starting with
* "-----BEGIN RSA PRIVATE KEY-----") is supported. When provided, Stytch will generate a new x509
* certificate from this key and return it in the signing_certificates array.
*/
signing_private_key?: string;
}

// Response type for `sso.saml.updateConnection`.
Expand Down Expand Up @@ -338,6 +344,7 @@ export class SAML {
data.saml_group_implicit_role_assignments,
alternative_audience_uri: data.alternative_audience_uri,
identity_provider: data.identity_provider,
signing_private_key: data.signing_private_key,
},
});
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stytch",
"version": "12.5.0",
"version": "12.6.0",
"description": "A wrapper for the Stytch API",
"types": "./types/lib/index.d.ts",
"main": "./dist/index.js",
Expand Down
1 change: 1 addition & 0 deletions types/lib/b2b/sso.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions types/lib/b2b/sso_saml.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 05f3b21

Please sign in to comment.