Skip to content

Commit

Permalink
Merge pull request #6609 from stephane-mori/auth-backend-saml-clock-d…
Browse files Browse the repository at this point in the history
…iscrepancies

Auth backend saml clock discrepancies
  • Loading branch information
benjdlambert committed Jul 28, 2021
2 parents d659342 + 63215cf commit ec5f615
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-apples-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-auth-backend': patch
---

Allow to configure SAML auth `acceptedClockSkewMs`
1 change: 1 addition & 0 deletions plugins/auth-backend/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface Config {
decryptionPvk?: string;
signatureAlgorithm?: 'sha256' | 'sha512';
digestAlgorithm?: string;
acceptedClockSkewMs?: number;
};
okta?: {
[authEnv: string]: { [key: string]: string };
Expand Down
1 change: 1 addition & 0 deletions plugins/auth-backend/src/providers/saml/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const createSamlProvider = (
| SignatureAlgorithm
| undefined,
digestAlgorithm: config.getOptionalString('digestAlgorithm'),
acceptedClockSkewMs: config.getOptionalNumber('acceptedClockSkewMs'),

tokenIssuer,
appUrl: globalConfig.appUrl,
Expand Down

0 comments on commit ec5f615

Please sign in to comment.