Auto-internal URLs: add VMWare Workspace ONE + SecurID (PR #1391, fix #1390)

Update internal URLs to include VMware's Workspace ONE and SecurID.
This commit is contained in:
Pedro Algarvio 2022-04-18 23:46:31 +01:00 committed by GitHub
parent f6852d5208
commit 74bc2d4188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

2
API.md
View File

@ -795,6 +795,8 @@ Current known internal login pages:
- `login.live.com` , `login.microsoftonline.com`
- `okta.com`
- `twitter.com/oauth/authenticate`
- `workspaceair.com`
- `securid.com`
Note: While .com is specified, for most of these we try to match even on non-US
based domains such as `.co.uk` as well

View File

@ -200,6 +200,8 @@ const testLoginPages = [
'https://appleid.apple.com/auth/authorize',
'https://id.atlassian.com',
'https://auth.atlassian.com',
'https://vmware.workspaceair.com',
'https://vmware.auth.securid.com',
];
test.each(testLoginPages)(

View File

@ -106,6 +106,8 @@ function isInternalLoginPage(url: string): boolean {
'twitter\\.[a-zA-Z\\.]*/oauth/authenticate', // Twitter
'appleid\\.apple\\.com/auth/authorize', // Apple
'(?:id|auth)\\.atlassian\\.[a-zA-Z]+', // Atlassian
'.*\\.workspaceair\\.com', // VMWare Workspace One SSO
'.*\\.securid\\.com', // SecurID for VMWare Workspace One SSO
];
// Making changes? Remember to update the tests in helpers.test.ts and in API.md
const regex = RegExp(internalLoginPagesArray.join('|'));