Skip to content

Commit 57e7c80

Browse files
committed
feat: ping-fed-central-login
adding the allowed error the the allowedErrors variable. this will allow central login through ping fed
1 parent d3d4e55 commit 57e7c80

File tree

3 files changed

+7
-59
lines changed

3 files changed

+7
-59
lines changed

package-lock.json

Lines changed: 3 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/javascript-sdk/src/oauth2-client/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const allowedErrors = {
3434
// AM error for consent requirement
3535
AuthenticationConsentRequired: 'Authentication or consent required',
3636

37+
// Ping federate consent requirement
38+
AuthenticationIsRequired: 'Authentication is required.',
39+
3740
// Manual iframe error
3841
AuthorizationTimeout: 'Authorization timed out',
3942

packages/javascript-sdk/src/token-manager/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ abstract class TokenManager {
162162

163163
// Check if error is not one of our allowed errors
164164
if (
165+
allowedErrors.AuthenticationIsRequired !== err.message &&
165166
allowedErrors.AuthenticationConsentRequired !== err.message &&
166167
allowedErrors.AuthorizationTimeout !== err.message &&
167168
allowedErrors.FailedToFetch !== err.message &&

0 commit comments

Comments
 (0)