|
7 | 7 | <body>
|
8 | 8 | <h1>Authentication</h1>
|
9 | 9 | ZAP can handle a wide range of authentication mechanisms.<br>
|
| 10 | + If you are new to ZAP automation then the best place to start is the ZAP |
| 11 | + <a href="https://www.zaproxy.org/docs/authentication/">Authentication Decision Tree</a> (external link). |
| 12 | + <p> |
10 | 13 | Each <a href="contexts.html">Context</a> has:
|
11 | 14 | <ul>
|
12 | 15 | <li>an <a href="authmethods.html">Authentication Method</a> which defines how authentication is handled.
|
@@ -63,17 +66,22 @@ <h2>Configuration example</h2>
|
63 | 66 | <li>Define as many users as you need in the Session Properties -> Users section.</li>
|
64 | 67 | </ol>
|
65 | 68 | After configuring authentication, various actions are available in ZAP. For example, you can now select the user in the
|
66 |
| - Spider dialogue. Or, using the Forced User Mode, |
67 |
| - you can force all the interactions that go through ZAP for a given Context to be from the perspective of a User. |
68 |
| - The Forced User Mode is enabled via a button in the toolbar (the one with the user and the lock) and |
69 |
| - is configured via Session Properties -> Forced User Mode. |
| 69 | + Spider dialogue. |
70 | 70 | <br>
|
71 | 71 | Most of the steps above apply as well for other authentication methods. The only things that change when trying
|
72 | 72 | to configure authentication using a different method is step 6. Instead of that, select the authentication
|
73 | 73 | method required from the drop-down list and configure it as needed. More details about configuring each type
|
74 | 74 | of authentication can be found in the <a href="authmethods.html">Authentication Methods</a> page and in the
|
75 | 75 | <a href="../../ui/dialogs/session/contexts.html">Context Session screens</a>.
|
76 | 76 |
|
| 77 | + <h2><a name="forceduser">Forced User Mode</a></h2> |
| 78 | + When Forced User Mode is enabled then all interactions that go through ZAP for a given context will be |
| 79 | + updated to be from the perspective of the specified User.<br> |
| 80 | + The Forced User Mode is enabled via a button in the toolbar (the one with the user and the lock) and |
| 81 | + is configured via Session Properties -> Forced User Mode.<br> |
| 82 | + <b>Important:</b> Forced User Mode is just intended for manual testing and should not be used in automation - |
| 83 | + there are much better alternatives. |
| 84 | + |
77 | 85 | <h2><a name="envvars">Authentication Header Environmental Variables</a></h2>
|
78 | 86 | A set of environmental variables are available which allow you to easily add an authentication header to all of the requests that are proxied through ZAP or initiated
|
79 | 87 | by the ZAP tools, including the spiders and active scanner:
|
|
0 commit comments