# Google Auth

{% hint style="warning" %}
**Use a Google account on your company domain for testing.**

Do not use a newly created free Gmail account. Google will likely block it or flag the login as bot behavior.
{% endhint %}

To let the agent log in with Google Auth, follow these steps:

{% stepper %}
{% step %}
**Navigate to security settings**

Go to the settings page of your account: [https://myaccount.google.com/u/1/security](https://myaccount.google.com/u/1/security)

<figure><img src="https://help.aikidogov.us/_assets/208fa3402b5c/image-193.png" alt=""><figcaption></figcaption></figure>

Start the authenticator app setup flow.
{% endstep %}

{% step %}
**MFA Onboarding**

Click on the authenticator app option to configure the MFA.

<figure><img src="https://help.aikidogov.us/_assets/856d31e040ba/image-194.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Get secret instead of code**

When you see the QR code, select **"Can't scan it?"**

<figure><img src="https://help.aikidogov.us/_assets/a5bda08e216e/image-195.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Copy the key**

<figure><img src="https://help.aikidogov.us/_assets/dcfd11c31189/image-196.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Store key in password manager**

Store the key in a password manager of your choice. We recommend one that lets you copy the secret easily, such as 1Password or Bitwarden.
{% endstep %}

{% step %}
**Complete the flow and enable 2-Step Verification**

<figure><img src="https://help.aikidogov.us/_assets/0c1d77baad8f/image-197.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Set up authentication in Aikido Pentest**

Write your instructions in a format like this:

```
Step 1: Go to domain.com/login
Step 2: Select "Google Login". You will be redirected to accounts.google.com
Step 3: Provide the following credentials:
- username: security-test@company.com
- password: wrongpassword
Step 4: Generate the TOTP and log in
Success criteria: When you log in successfully, you will see "Hello Patrick" on the home screen
```
{% endstep %}

{% step %}
**Add the TOTP URL**

Add the key in base32 format. Remove spaces from the Google key before you paste it.

<figure><img src="https://help.aikidogov.us/_assets/04f22a74996d/image-198.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
