Skip to content

Commit 2c6ea7f

Browse files
author
Timothy Wang
committed
Reapply "Merge pull request Azure#895 from jonnekleijer/fix/844-identity-provider-regex"
This reverts commit ec38949.
1 parent 9479c02 commit 2c6ea7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/msha/auth/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function getAuthPaths(isCustomAuth: boolean): Path[] {
3636
} else {
3737
paths.push({
3838
method: "GET",
39-
route: /^\/\.auth\/login\/(?<provider>github|twitter|google|facebook|[a-z]+)(\?.*)?$/i,
39+
route: /^\/\.auth\/login\/(?<provider>github|twitter|google|facebook|[a-z0-9]+)(\?.*)?$/i,
4040
function: "auth-login-provider",
4141
});
4242
}
@@ -54,7 +54,7 @@ function getAuthPaths(isCustomAuth: boolean): Path[] {
5454
},
5555
{
5656
method: "GET",
57-
route: /^\/\.auth\/purge\/(?<provider>aad|github|twitter|google|facebook|[a-z]+)(\?.*)?$/i,
57+
route: /^\/\.auth\/purge\/(?<provider>aad|github|twitter|google|facebook|[a-z0-9]+)(\?.*)?$/i,
5858
// locally, all purge requests are processed as logout requests
5959
function: "auth-logout",
6060
},

0 commit comments

Comments
 (0)