mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 13:15:39 +00:00
Add CLI support for SAML SSO
This commit is contained in:
@@ -36,6 +36,7 @@ type Props = {
|
||||
email: string;
|
||||
password: string;
|
||||
providerAuthToken?: string;
|
||||
callbackPort?: string | null;
|
||||
}
|
||||
|
||||
interface VerifyMfaTokenError {
|
||||
@@ -53,7 +54,8 @@ interface VerifyMfaTokenError {
|
||||
export const MFAStep = ({
|
||||
email,
|
||||
password,
|
||||
providerAuthToken
|
||||
providerAuthToken,
|
||||
callbackPort
|
||||
}: Props) => {
|
||||
const { createNotification } = useNotificationContext();
|
||||
const router = useRouter();
|
||||
@@ -77,9 +79,7 @@ export const MFAStep = ({
|
||||
}
|
||||
|
||||
setIsLoading(true);
|
||||
const queryParams = new URLSearchParams(window.location.search)
|
||||
if (queryParams && queryParams.get("callback_port")){
|
||||
const callbackPort = queryParams.get("callback_port")
|
||||
if (callbackPort){
|
||||
|
||||
// attemptCliLogin
|
||||
const isCliLoginSuccessful = await attemptCliLoginMfa({
|
||||
|
||||
Reference in New Issue
Block a user