diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Auth/AuthProviders/AuthProvider.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Auth/AuthProviders/AuthProvider.tsx index 1eea3c5aecf..bb4e741ea2f 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Auth/AuthProviders/AuthProvider.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Auth/AuthProviders/AuthProvider.tsx @@ -530,7 +530,9 @@ export const AuthProvider = ({ } setLoading(false); } else { - getLoggedInUserDetails(); + if (location.pathname !== ROUTES.AUTH_CALLBACK) { + getLoggedInUserDetails(); + } } } else { // provider is either null or not supported diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/SamlCallback/index.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/SamlCallback/index.tsx index 13c5e651973..38142330ce6 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/SamlCallback/index.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/SamlCallback/index.tsx @@ -10,18 +10,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/* - * Copyright 2021 Collate - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ import React, { useEffect } from 'react'; import { useTranslation } from 'react-i18next';