Merge pull request #6609 from stephane-mori/auth-backend-saml-clock-discrepancies

Auth backend saml clock discrepancies
This commit is contained in:
Ben Lambert
2021-07-28 12:21:43 +02:00
committed by GitHub
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend': patch
---
Allow to configure SAML auth `acceptedClockSkewMs`
+1
View File
@@ -53,6 +53,7 @@ export interface Config {
decryptionPvk?: string;
signatureAlgorithm?: 'sha256' | 'sha512';
digestAlgorithm?: string;
acceptedClockSkewMs?: number;
};
okta?: {
[authEnv: string]: { [key: string]: string };
@@ -132,6 +132,7 @@ export const createSamlProvider = (
| SignatureAlgorithm
| undefined,
digestAlgorithm: config.getOptionalString('digestAlgorithm'),
acceptedClockSkewMs: config.getOptionalNumber('acceptedClockSkewMs'),
tokenIssuer,
appUrl: globalConfig.appUrl,