@@ -59,6 +59,7 @@ export interface SAMLDocumentTemplate {
5959export type ServiceProviderSettings = {
6060 metadata ?: string | Buffer ;
6161 entityID ?: string ;
62+ keyFile ?: string ;
6263 authnRequestsSigned ?: boolean ;
6364 wantAssertionsSigned ?: boolean ;
6465 wantMessageSigned ?: boolean ;
@@ -69,8 +70,8 @@ export type ServiceProviderSettings = {
6970 isAssertionEncrypted ?: boolean ;
7071 encPrivateKey ?: string | Buffer ;
7172 encPrivateKeyPass ?: string | Buffer ;
72- assertionConsumerService ?: Array < { Binding : string , Location : string } > ;
73- singleLogoutService ?: Array < { Binding : string , Location : string } > ;
73+ assertionConsumeService ?: Array < { isDefault ?: boolean , Binding : string , Location : string } > ;
74+ singleLogoutService ?: Array < { isDefault ?: boolean , Binding : string , Location : string } > ;
7475 signatureConfig ?: SignatureConfig ;
7576 loginRequestTemplate ?: SAMLDocumentTemplate ;
7677 logoutRequestTemplate ?: SAMLDocumentTemplate ;
@@ -84,27 +85,23 @@ export type ServiceProviderSettings = {
8485
8586export type IdentityProviderSettings = {
8687 metadata ?: string | Buffer ;
87-
8888 /** signature algorithm */
8989 requestSignatureAlgorithm ?: string ;
90-
9190 /** template of login response */
9291 loginResponseTemplate ?: LoginResponseTemplate ;
93-
9492 /** template of logout request */
9593 logoutRequestTemplate ?: SAMLDocumentTemplate ;
96-
9794 /** customized function used for generating request ID */
9895 generateID ?: ( ) => string ;
99-
10096 entityID ?: string ;
97+ keyFile ?: string ;
10198 privateKey ?: string | Buffer ;
10299 privateKeyPass ?: string ;
103100 signingCert ?: string | Buffer ;
104101 encryptCert ?: string | Buffer ; /** todo */
105102 nameIDFormat ?: string [ ] ;
106- singleSignOnService ?: Array < { [ key : string ] : string } > ;
107- singleLogoutService ?: Array < { [ key : string ] : string } > ;
103+ singleSignOnService ?: Array < { isDefault ?: boolean , Binding : string , Location : string } > ;
104+ singleLogoutService ?: Array < { isDefault ?: boolean , Binding : string , Location : string } > ;
108105 isAssertionEncrypted ?: boolean ;
109106 encPrivateKey ?: string | Buffer ;
110107 encPrivateKeyPass ?: string ;
0 commit comments