Authentication
Use the Authorization tab to send a request as a user, with a token, or with a username and password.
Choose a type
- Open the Authorization tab of a request.
- Pick a type from the Type list.

| Type | Group | Use it to |
|---|---|---|
| None | Other | Send the request without credentials. |
| Bearer Token | Other | Send an Authorization: Bearer header. |
| Basic Auth | Other | Send an Authorization: Basic header. |
| Currently Logged-in User | Special | Act as the user logged in to your application in the same browser. |
| Impersonate User with ID | Special | Act as any user without logging in. |
| Token for user | Special | Send a real personal access token for a user. |
The three special types run on the current host only. When another environment is active, they are disabled. The server also checks the host of the endpoint, so it refuses these types with a message when the endpoint points at another host. See Environments.
What goes only to the current host
Nimbus creates some credentials itself. It sends them only when the host and port of the endpoint match the base URL of the current host, which is base_url in config/nimbus.php or the host of the page.
- The session cookies of the logged-in user, the
X-Nimbus-Actorheader, the remember me cookie, the JWT and the personal access token of the special types. - The
X-CSRF-TOKENheader. - The Nimbus headers for transaction mode, time travel, the rate limiter reset and sandbox.
A bearer token, basic auth and headers that you type are sent as you typed them, to any host. A redirect that leaves the current host can still carry them, so turn off Follow redirects when you do not trust the target.
The default type for new requests is set in Settings. A new tab for a route that requires authentication starts with the last authorization you used when the current one is None.
Currently logged-in user
- Log in to your Laravel application in another tab.
- Choose Currently Logged-in User.
- Send the request. It carries your session cookies.
If you are not logged in, the tab says so and shows no user ID.
Impersonate a user
Use this to test how an endpoint behaves for different users without logging in as them.
- Choose Impersonate User with ID.
- If your application has more than one guard, pick the guard in the Guard row. It starts with the configured guard.
- In the User row, type a user key, or click the search button to pick a user from a list.
- Send the request. Nimbus authenticates it as that user.

Type to search by ID, name or email. Name and email are used only when the column exists. For other providers, type the key.
By default Nimbus sends an X-Nimbus-Actor header with the guard name and the user key. A listener in your application reads it before route middleware runs and sets the user on that guard, so auth and can middleware see the user. No session, cookie or token is created and nothing is written to your database.
Caution
The header is not signed. In any environment listed in allowed_envs, anyone who can reach the application can act as any user. Keep allowed_envs limited to environments that outsiders cannot reach.
Things to know:
- Guard events such as
Logindo not fire, because the user is set directly on the guard. - A header with an unknown guard or user is ignored and logged at debug level. The request continues as a guest.
- To use a cookie or a JWT instead, change
auth.special.injectorto'remember_me_cookie'or'tymon_jwt'. The remember me injector can write a remember token to the user row. See Configuration options.
Token for user
Use this for routes that read the token itself, for example auth:sanctum with token abilities or Passport scopes.
- Choose Token for user.
- Pick the guard and the user.
- Enter Abilities as a comma separated list. The default is
*, which means all abilities. - Send the request.

- Laravel Sanctum or Laravel Passport must be installed, and the user model must use the
HasApiTokenstrait. - If no guard can create tokens, the tab says No guard can create tokens.
- The token is created before the request starts, so it sits outside the database transaction of Transaction mode. It is still deleted afterward.
Bearer token and basic auth
Choose Bearer Token and enter the token, or choose Basic Auth and enter a username and password. Basic credentials are base64 encoded in the Authorization header.
Nimbus creates a personal access token for the user, sends it as a bearer token, and deletes it when the response arrives. The token is deleted even when the request fails.
Signed routes
A route with the signed middleware only accepts a URL that carries a valid signature. When Nimbus sees this middleware, a Sign URL switch appears in the request options menu.
- Fill the route parameters and the query parameters.
- Open Request options and turn on Sign URL.
- Click Send.
- The route must have a name. Nimbus refuses to sign a URL that matches no route, or a route without the
signedmiddleware. - The signature is built for the host of the active environment.
signed:relativeroutes get a relative signature.
To sign a URL by hand or check one, use the Toolbox.