> For the complete documentation index, see [llms.txt](https://support.attackforge.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.attackforge.com/app/getting-started/login-redirects.md).

# Login Redirects

## Overview <a href="#overview" id="overview"></a>

Login redirects are links that take people straight to where they need to go, such as the single sign-on page or a specific project, instead of the standard sign-in page and dashboard. They help your users and customers get to the data they need quickly.

Add a destination to your login link to send people to single sign-on, registration or password reset. To link to a page, share its own address. If you have two SSO providers, add `sso=1` or `sso=2` to choose one.

<figure><img src="https://372186556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8s1QY2Q6YTHB4a6DMu%2Fuploads%2FQ9aeyqCOkR7XfD70XL5A%2Flogin-redirects-at-a-glance.svg?alt=media&amp;token=1a8a9bb0-5717-4c7f-86e1-9c2cfb3ee58d" alt=""><figcaption></figcaption></figure>

## When to use them <a href="#when-to-use-them" id="when-to-use-them"></a>

* **Onboard a client.** Send them a link that signs them in through their own identity provider.
* **Share a finding or project.** Send a colleague a link that lands them on the right project once they've signed in.
* **Help people help themselves.** Link straight to registration or password reset in your welcome emails and help pages.
* **Make SSO the default.** Use an SSO link on your intranet or portal, so people never see the username and password form.

## Who benefits <a href="#who-benefits" id="who-benefits"></a>

| Who                                  | How                                                                            |
| ------------------------------------ | ------------------------------------------------------------------------------ |
| **Clients and new users**            | Sign in the right way, first time                                              |
| **Testers and project coordinators** | Share links that land people on the right project                              |
| **Administrators**                   | Point people to SSO, registration or password reset without extra instructions |

## Send people to a sign-in option <a href="#send-people-to-a-sign-in-option" id="send-people-to-a-sign-in-option"></a>

Add `?redirectTo=` to your login URL:

```
https://<AFE_TENANT>/#!/login?redirectTo=<destination>
```

Replace `<AFE_TENANT>` with your AttackForge address, and `<destination>` with one of these:

| Destination     | Takes the user to                                 |
| --------------- | ------------------------------------------------- |
| `sso`           | Signing in with single sign-on, if it's available |
| `register`      | The registration page, if it's available          |
| `resetPassword` | The password reset page, if it's available        |

## Examples <a href="#examples" id="examples"></a>

| Link                                                     | Takes the user to     |
| -------------------------------------------------------- | --------------------- |
| `https://<AFE_TENANT>/#!/login?redirectTo=sso`           | Single sign-on        |
| `https://<AFE_TENANT>/#!/login?redirectTo=register`      | The registration page |
| `https://<AFE_TENANT>/#!/login?redirectTo=resetPassword` | Password reset        |

## Link to a page <a href="#link-to-a-page" id="link-to-a-page"></a>

To send someone to a specific page, such as a project's overview, share the page's own address. If they're not signed in, they'll be asked to sign in, then taken to the page.

1. Open the page in AttackForge.
2. Copy its address from your browser.
3. To have them sign in with a specific SSO provider, add `?sso=1` or `?sso=2` to the end, or `&sso=1` if the address already has a `?`. See below.

## Send people to a specific SSO provider <a href="#send-people-to-a-specific-sso-provider" id="send-people-to-a-specific-sso-provider"></a>

If your tenant has more than one single sign-on provider, you can send someone a link that takes them straight to the right one. Add `?sso=1` or `?sso=2` to the login URL, or to any page in AttackForge. They'll be signed in through that provider, and land where the link points.

This is useful when you're onboarding a client onto their own identity provider, or pointing a colleague to a finding without the detour.

| Link                                                                              | Does this                                                       |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| `https://<AFE_TENANT>?sso=1`                                                      | Signs in with SSO provider 1                                    |
| `https://<AFE_TENANT>/projects/6aacc1455bc5bbfa0a61b47e/home?type=overview&sso=1` | Signs in with SSO provider 1, then opens the project's overview |

If the address already has a `?`, add `&sso=1` instead, as in the second example.

## Tips <a href="#tips" id="tips"></a>

* **Put an SSO link on your intranet or portal**, so people sign in with SSO by default.
* **Use the right SSO provider for each client** in their onboarding email.
* **Add registration and password reset links** to your welcome emails and help pages.
* **Link to a project's dashboard** when you tell a client their results are ready.
* **Test links in a private browser window**, so you see what a signed-out user sees.

## FAQ <a href="#faq" id="faq"></a>

**What happens if SSO, registration or password reset isn't turned on?** These redirects only work if the option is available on your tenant.

**Will a redirect let someone see a page they don't have access to?** No. They still need access to the page once they've signed in.

**Can I combine an SSO provider with a link to a page?** Yes. Add `sso=1` or `sso=2` to the page's address, as in the second SSO example.

**Where do I find a project's ID for a link?** In the project's address in your browser, after `/projects/`.

## Related pages <a href="#related-pages" id="related-pages"></a>

* [Users: single sign-on](https://support.attackforge.com/app/modules/users)
* [Manage user](https://support.attackforge.com/app/getting-started/manage-user)
* [Creating and managing projects](https://support.attackforge.com/app/getting-started/creating-and-managing-projects)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.attackforge.com/app/getting-started/login-redirects.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
