fix - point to fallback login
This commit is contained in:
parent
7cb40d3b35
commit
0b964ea7ff
@ -27,6 +27,7 @@ import {
|
||||
Col,
|
||||
Text,
|
||||
Grid,
|
||||
Callout,
|
||||
} from "@tremor/react";
|
||||
import { PencilAltIcon } from "@heroicons/react/outline";
|
||||
interface AdminPanelProps {
|
||||
@ -60,6 +61,13 @@ const AdminPanel: React.FC<AdminPanelProps> = ({
|
||||
const [isAddSSOModalVisible, setIsAddSSOModalVisible] = useState(false);
|
||||
const [isInstructionsModalVisible, setIsInstructionsModalVisible] = useState(false);
|
||||
|
||||
let nonSssoUrl;
|
||||
try {
|
||||
nonSssoUrl = window.location.origin;
|
||||
} catch (error) {
|
||||
nonSssoUrl = '<your-proxy-url>';
|
||||
}
|
||||
|
||||
const handleAddSSOOk = () => {
|
||||
|
||||
setIsAddSSOModalVisible(false);
|
||||
@ -504,6 +512,9 @@ const handleInstructionsCancel = () => {
|
||||
</div>
|
||||
</Modal>
|
||||
</div>
|
||||
<Callout title="Login without SSO" color="teal">
|
||||
If you need to login without sso, you can access <a href= {nonSssoUrl} target="_blank"><b>{nonSssoUrl}/fallback/login</b> </a>
|
||||
</Callout>
|
||||
</Grid>
|
||||
</div>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user