forked from phoenix/litellm-mirror
fix - point to fallback login
This commit is contained in:
parent
7cb40d3b35
commit
0b964ea7ff
1 changed files with 11 additions and 0 deletions
|
@ -27,6 +27,7 @@ import {
|
||||||
Col,
|
Col,
|
||||||
Text,
|
Text,
|
||||||
Grid,
|
Grid,
|
||||||
|
Callout,
|
||||||
} from "@tremor/react";
|
} from "@tremor/react";
|
||||||
import { PencilAltIcon } from "@heroicons/react/outline";
|
import { PencilAltIcon } from "@heroicons/react/outline";
|
||||||
interface AdminPanelProps {
|
interface AdminPanelProps {
|
||||||
|
@ -60,6 +61,13 @@ const AdminPanel: React.FC<AdminPanelProps> = ({
|
||||||
const [isAddSSOModalVisible, setIsAddSSOModalVisible] = useState(false);
|
const [isAddSSOModalVisible, setIsAddSSOModalVisible] = useState(false);
|
||||||
const [isInstructionsModalVisible, setIsInstructionsModalVisible] = useState(false);
|
const [isInstructionsModalVisible, setIsInstructionsModalVisible] = useState(false);
|
||||||
|
|
||||||
|
let nonSssoUrl;
|
||||||
|
try {
|
||||||
|
nonSssoUrl = window.location.origin;
|
||||||
|
} catch (error) {
|
||||||
|
nonSssoUrl = '<your-proxy-url>';
|
||||||
|
}
|
||||||
|
|
||||||
const handleAddSSOOk = () => {
|
const handleAddSSOOk = () => {
|
||||||
|
|
||||||
setIsAddSSOModalVisible(false);
|
setIsAddSSOModalVisible(false);
|
||||||
|
@ -504,6 +512,9 @@ const handleInstructionsCancel = () => {
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</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>
|
</Grid>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue