> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logging in to the Megaport Portal

> This help topic describes how you can log in to the Megaport Portal with Multi-Factor Authentication (MFA) and Single Sign-On (SSO).

export const Anchor = ({name}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Anchor -';
  if (name === undefined || name === null || name === 'undefined') {
    console.error(`${errorPrefix} \`name\` must have a value — rendering an empty string instead`);
    return <></>;
  }
  const raw = typeof name === 'string' ? name : JSON.stringify(name);
  const id = raw.replace(/\s+/g, '-').replace(/[^A-Za-z0-9_-]/g, '').replace(/-+/g, '-').replace(/^-+|-+$/g, '');
  if (!id) {
    console.error(`${errorPrefix} \`name\` "${name}" sanitizes to an empty id — rendering an empty string instead`);
    return <></>;
  }
  return <a style={{
    scrollMarginTop: 'var(--scroll-mt)'
  }} id={id}></a>;
};

export const Image = ({src, alt = '', caption, width, height, shadow}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Image -';
  if (typeof src !== 'string') {
    src = String(src);
  }
  if (!src || src === 'undefined') {
    console.error(`${errorPrefix} \`src\` is required — rendering an empty string instead`);
    return <></>;
  }
  const img = <img className={['mega-image-style', shadow ? 'shadow' : ''].join(' ')} src={src} alt={alt} width={width} height={height} style={{
    display: 'block'
  }} />;
  return caption ? <figure>
      {img}
      <figcaption style={{
    textAlign: 'center',
    width
  }}>{caption}</figcaption>
    </figure> : img;
};

export const Link = ({href, children}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Link -';
  if (typeof href !== 'string') {
    href = String(href);
  }
  if (!href || href === 'undefined') {
    console.error(`${errorPrefix} the \`href\` property is required — rendering an empty string instead`);
    return <></>;
  }
  if (href.includes('{') || href.toUpperCase().includes('%7B')) {
    console.error(`${errorPrefix} could not resolve a variable in href "${href}" — rendering an empty string instead`);
    return <></>;
  }
  const isExternal = (/^https?:\/\//).test(href);
  return <a href={href} className="link" target={isExternal ? '_blank' : undefined} rel={isExternal ? 'noreferrer' : undefined}>
      {children ?? href}
      {isExternal && <span className="sr-only"> (opens in a new tab)</span>}
    </a>;
};

<Note>
  If you are having trouble creating a new Megaport account, or logging in to an existing account, see [Megaport Portal Authentication Frequently Asked Questions (FAQs)](/troubleshooting/signup-login-faq).
</Note>

This topic describes how to log in to the Megaport Portal using Multi-Factor Authentication (MFA) and Single Sign-On (SSO).

<Note>
  MFA is mandatory unless your company is using SSO. If your company is using SSO, you will not be required to use MFA to log in to the Megaport Portal.\
  For more information about MFA and SSO, see [Multi-Factor Authentication](/setting-up/enforcing-mfa) and [Setting up Single Sign-On](/setting-up/enforcing-sso).
</Note>

Once you have been invited to your company by a Company Admin, you can log in to the Megaport Portal. You will need to log in using MFA or SSO.

## How logging in works

Logging in to the Megaport Portal takes place on a hosted Megaport login page. After you log in, your session is shared with other Megaport systems, such as the Quoting Tool and Latitude.sh, so you do not need to log in to each system separately.

To log in, first enter your email address then click **Continue**. The next step depends on the authentication method configured for your account.

The Megaport Portal login page uses a two-step, identification-first flow. You first enter your email address and click **Continue**.

<Image src="/images/setting-up/login-step-1.png" alt="Login step 1" shadow={true} width={300} />

The login page then displays the authentication method configured for your account: password and MFA, Sign in with Google, or your company's identity provider for SSO.

<Image src="/images/setting-up/login-step-2.png" alt="Login step 2" shadow={true} width={300} />

## About MFA

MFA is an authentication method and security system that ensures all of your business accounts require more than one verification factor before they can be accessed. For example, a username and password, and a code from an authentication app. MFA is a core component of a strong identity and access management (IAM) policy, and provides an extra level of security for your Megaport Portal account. We recommend that you use the Google Authenticator app when securing your accounts with MFA.

Each user should install a login verification app (such as Google Authenticator) on their digital device (phone, tablet, computer, and so on). When users log in, they check the login verification app for the token or code that they need to enter as the additional factor.

For more information about managing your MFA settings, see [Securing your account with MFA](/setting-up/manage-profile#securing-your-account-with-mfa).

## Logging in with MFA for the first time

MFA is mandatory. You will need to enter a valid token from an authenticator app every time you log in to the Megaport Portal, in addition to your email and password. For more information about setting up MFA, see [Multi-Factor Authentication](/setting-up/enforcing-mfa).

The first time you log in to the Megaport Portal, you will be prompted to set up MFA. You will need to scan a QR code with an authenticator app on your phone (for example, Google Authenticator) to generate the required token for logging in. After you have set up MFA, you will need to enter a valid token from the authenticator app every time you log in to the Megaport Portal, in addition to your email and password.

**To log in with MFA for the first time**

1. Visit the <Link href="https://portal.megaport.com">Megaport Portal</Link>.

   <Tip>
     Click **Get help signing in** on the login page for help if you are experiencing issues logging in.
   </Tip>

2. Enter your email then click **Continue**.\
   If you are logging in with Google, click **Sign in with Google** instead. If you are already logged in to Google in the browser, this button will show your details.

3. Enter your password then click **Log In**.\
   The Multi-Factor Authentication setup screen appears.
   <Image src="/images/setting-up/mfa-setup.png" alt="Set up Multi-Factor Authentication" shadow={true} width={300} />

4. Scan the QR code with the authenticator app on your phone (for example, Google Authenticator).

5. Enter the one-time token generated by the authenticator app.\
   Using Google Authenticator, this is a series of six numbers.

6. Click **Enable MFA**.\
   MFA is enabled and you are logged in to the Megaport Portal.

<Note>
  After five failed login attempts, your account will be locked. To have your account reactivated, contact your Company Admin.
</Note>

## Logging in with MFA

You need to supply a valid token from the authenticator app every time you log in to the Megaport Portal, in addition to your email and password.

**To log in with MFA**

1. Visit the <Link href="https://portal.megaport.com">Megaport Portal</Link>.

   <Tip>
     Click **Get help signing in** on the login page for help if you are experiencing issues logging in.
   </Tip>

2. Enter your email then click **Continue**.

3. Enter your password then click **Log In**.

4. Enter the code from the authenticator app and click **Verify** to log in.

   <Image src="/images/setting-up/mfa-login-verify.png" alt="Log in with MFA verification" shadow={true} width={300} />

<Note>
  After five failed login attempts, your account will be locked. To have your account reactivated, contact your Company Admin.
</Note>

<Anchor name="logging-in-after-mfa-has-been-reset-for-your-profile" />

## Logging in after MFA has been reset for your profile

If you or your Company Admin has reset MFA for your profile since the last time you logged in, you need to set up MFA again to log in to the Megaport Portal. You will not be able to log in until you have done so.

Your previous MFA codes will no longer be valid and you must scan the QR code again for the authentication app to generate new codes. If you cancel out of this setup, you will be prompted again to set it up the next time you try to log in.

**To log in after MFA has been reset for your profile**

1. Visit the <Link href="https://portal.megaport.com">Megaport Portal</Link>.

2. Enter your email then click **Continue**.\
   If you are logging in with Google, click **Sign in with Google** instead. If you are already logged in to Google in the browser, this button will show your details.

3. Enter your password then click **Log In**.\
   The Multi-Factor Authentication screen appears stating that a Company Admin has reset and disabled your MFA code, and that you need to set up MFA again to log in.
   <Image src="/images/setting-up/mfa-setup-after-reset.png" alt="Set up Multi-Factor Authentication after reset" shadow={true} width={300} />

4. Scan the QR code with the authenticator app on your phone (for example, Google Authenticator).

5. Enter the one-time token generated by the authenticator app.\
   Using Google Authenticator, this is a series of six numbers.

6. Click **Enable MFA**.\
   MFA is enabled and you are logged in to the Megaport Portal.

You need to supply a valid token from the authenticator app every time you log in to the Megaport Portal, in addition to your email and password.

<Note>
  After five failed login attempts, your account will be locked. To have your account reactivated, contact your Company Admin.
</Note>

## About SSO

SSO is an identity and access management solution that allows users to log in to multiple applications, websites, and software systems with one-time user authentication. That is, SSO allows users to log in once and access multiple services without having to authenticate again.

SSO provides both improved security to organizations and an enhanced user experience. Users can access all  applications to which they are entitled, without the need to log in and authenticate multiple times once their identity is validated. It also allows administrators to more easily manage user identity and access.

## Logging in with SSO

Once you have been invited to your company by a Company Admin, you can log in to the Megaport Portal. If a Company Admin has enforced SSO for your company, you must use SSO when logging in. You will be directed to your company's identity provider (IdP) for authentication after entering your email address in the Megaport Portal login page.

<Note>
  See your identity provider's website for further setup instructions, help with fault resolution, and privacy policies.
</Note>

**To log in with SSO**

1. Visit the <Link href="https://portal.megaport.com">Megaport Portal</Link>.

   <Tip>
     Click **Get help signing in** on the login page for help if you are experiencing issues logging in.
   </Tip>

2. Enter your email address then click **Continue**.\
   For the first time you are logging in, and if your email domain is associated with an external IdP for SSO login, a pop-up message will appear and you will be directed to the IdP for authentication.
   <Image src="/images/setting-up/sso-login-first-time.png" alt="SSO First Time Log In" shadow={true} width={350} />

3. In the IdP page, enter your email address and password.\
   Where available, select to remain logged in if required.

4. Click Log in/Sign in to log in.\
   You are logged in to the Megaport Portal. Subsequent logins will log you straight in after entering your email address then clicking **Continue** in the Megaport Portal login page.

## Logging out

Click **Logout** to safely log out of the Megaport application.

If you have the Megaport Portal or Quoting Tool open in multiple tabs in the same browser, logging out in one tab automatically logs you out of all other open tabs of that application. The other tabs update immediately without requiring a refresh and display a message with a link to log in again.

<Note>
  This behavior applies only to tabs in the same browser and is application-specific. Logging out of the Megaport Portal does not log you out of the Quoting Tool, and vice versa.
</Note>

## Account lockout

After five failed login attempts, your Megaport Portal account is locked as a security measure to help prevent unauthorized access.

Once locked, the account cannot be used to sign in until it is reactivated by a Company Admin.

**To unlock your account**

1. Contact your Company Admin and ask them to reactivate your account.

2. Once your account has been reactivated, you can log in to the Megaport Portal with your email, password, and a valid token from your authenticator app.\
   If you have forgotten your password, click **Forgot Password** on the login page to receive an email to update your password.

**To unlock an account as a Company Admin**

1. Visit the <Link href="https://portal.megaport.com">Megaport Portal</Link>, then log in with your Company Admin account.
2. Choose User Menu > Admin Settings > Manage Users.
3. Find the user whose account is locked, edit their profile, then click **Active** to reactivate their account.

## Helpful references

* [Contacting Support](/support/contact)
* [Megaport Portal Authentication Frequently Asked Questions (FAQs)](/troubleshooting/signup-login-faq)
* [Multi-Factor Authentication](/setting-up/enforcing-mfa)
* [Setting up Single Sign-On](/setting-up/enforcing-sso)
