Skip to content

Commit

Permalink
fix(ui): tolerate entra id RFC8414 deviation (#3359)
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Rancourt <[email protected]>
  • Loading branch information
krancour authored Jan 24, 2025
1 parent ec10aca commit b4458c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ui/src/features/auth/oidc-login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ export const OIDCLogin = ({ oidcConfig }: Props) => {
})
.then((response) => processDiscoveryResponse(issuerUrl, response))
.then((response) => {
if (response.code_challenge_methods_supported?.includes('S256') !== true) {
if (
response.code_challenge_methods_supported?.includes('S256') !== true &&
!issuerUrl.toString().startsWith('https://login.microsoftonline.com')
) {
throw new Error('OIDC config fetch error');
}

Expand Down
5 changes: 4 additions & 1 deletion ui/src/features/auth/token-renew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export const TokenRenew = () => {
})
.then((response) => processDiscoveryResponse(issuerUrl, response))
.then((response) => {
if (response.code_challenge_methods_supported?.includes('S256') !== true) {
if (
response.code_challenge_methods_supported?.includes('S256') !== true &&
!issuerUrl.toString().startsWith('https://login.microsoftonline.com')
) {
throw new Error('OIDC config fetch error');
}

Expand Down

0 comments on commit b4458c5

Please sign in to comment.