Skip to content

Commit

Permalink
Merge pull request #895 from jonnekleijer/fix/844-identity-provider-r…
Browse files Browse the repository at this point in the history
…egex

fix msha (#844): Regex for custom authentication providers
  • Loading branch information
Timothyw0 authored Nov 27, 2024
2 parents 6745391 + 1140f61 commit c74de88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/msha/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function getAuthPaths(isCustomAuth: boolean): Path[] {
} else {
paths.push({
method: "GET",
route: /^\/\.auth\/login\/(?<provider>github|twitter|google|facebook|[a-z]+)(\?.*)?$/i,
route: /^\/\.auth\/login\/(?<provider>github|twitter|google|facebook|[a-z0-9]+)(\?.*)?$/i,
function: "auth-login-provider",
});
}
Expand All @@ -54,7 +54,7 @@ function getAuthPaths(isCustomAuth: boolean): Path[] {
},
{
method: "GET",
route: /^\/\.auth\/purge\/(?<provider>aad|github|twitter|google|facebook|[a-z]+)(\?.*)?$/i,
route: /^\/\.auth\/purge\/(?<provider>aad|github|twitter|google|facebook|[a-z0-9]+)(\?.*)?$/i,
// locally, all purge requests are processed as logout requests
function: "auth-logout",
},
Expand Down

0 comments on commit c74de88

Please sign in to comment.