<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Authentication Decision Tree on ZAP</title>
    <link>/docs/authentication/</link>
    <description>Recent content in Authentication Decision Tree on ZAP</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="/docs/authentication/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Auth: All Done</title>
      <link>/docs/authentication/use-the-context/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/use-the-context/</guid>
      <description>&lt;p&gt;You now have a context that handles authentication for your app.&lt;/p&gt;&#xA;&lt;p&gt;However if you do not do anything with it then it will be lost when you close the ZAP desktop!&lt;/p&gt;&#xA;&#xA;&lt;h4 id=&#34;change-to-use-a-headless-browser&#34;&gt;Change to use a Headless Browser &lt;a class=&#34;header-link&#34; href=&#34;#change-to-use-a-headless-browser&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;By default the Authentication Tester will use the Firefox browser - this means that you will see the browser being launched in order to login.&#xA;This helps when testing as we can then see what is going on.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: All Information Available</title>
      <link>/docs/authentication/test-the-context/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/test-the-context/</guid>
      <description>&lt;p&gt;You have a context for your app and have configured it to handle authentication.&lt;/p&gt;&#xA;&lt;p&gt;We now need to check that it really does work as expected.&lt;/p&gt;&#xA;&#xA;&lt;h4 id=&#34;action-create-an-automation-framework-plan&#34;&gt;Action: Create an Automation Framework Plan &lt;a class=&#34;header-link&#34; href=&#34;#action-create-an-automation-framework-plan&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;There are other ways to test the context manually, but this will make it easier to retest if you need to make any changes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: App Does Not Load in Time</title>
      <link>/docs/authentication/app-does-not-load/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/app-does-not-load/</guid>
      <description>&lt;p&gt;Some modern apps can take a long time to load.&lt;/p&gt;&#xA;&lt;p&gt;Keep increasing the &amp;lsquo;Time to Wait (seconds)&amp;rsquo; field in the Authentication Tester and retesting until you see your app completely load in the browser.&lt;/p&gt;&#xA;&lt;p&gt;This field controls the time the browser will wait before closing.&#xA;Be aware it might take even longer in CI/CD.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Application Type</title>
      <link>/docs/authentication/what-app-type/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/what-app-type/</guid>
      <description>&lt;p&gt;Modern web apps make heavy use of JavaScript.&lt;/p&gt;&#xA;&lt;p&gt;Traditional web apps typically return a full HTML page when you follow links.&lt;/p&gt;&#xA;&lt;p&gt;APIs do not have a UI, but may be used by both modern and traditional web apps.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Authentication Tester</title>
      <link>/docs/authentication/run-auth-tester/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/run-auth-tester/</guid>
      <description>&lt;h5 id=&#34;run-the-authentication-tester-in-the-zap-desktop&#34;&gt;Run the &lt;a href=&#34;/blog/2023-05-23-authentication-tester/&#34;&gt;Authentication Tester&lt;/a&gt; in the ZAP desktop.&lt;/h5&gt;&#xA;&lt;p&gt;You should do this even if you want to automate ZAP from the command line,&#xA;as it will help us understand which parts of the authentication process ZAP can automatically handle.&lt;/p&gt;&#xA;&lt;p&gt;If ZAP can automatically handle things then it will make your life easier.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Browser Fails to Launch</title>
      <link>/docs/authentication/browser-fails-to-launch/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/browser-fails-to-launch/</guid>
      <description>&lt;h5 id=&#34;follow-the-faq-how-can-i-fix&#34;&gt;Follow the FAQ &lt;a href=&#34;/faq/how-can-i-fix-browser-was-not-found/&#34;&gt;How can I fix &amp;lsquo;browser was not found&amp;rsquo;?&lt;/a&gt;&lt;/h5&gt;&#xA;&#xA;&lt;h4 id=&#34;next-step-run-the-auth-tester-again&#34;&gt;Next Step: &lt;a href=&#34;../auth-tester-results/&#34;&gt;Run the Auth Tester&lt;/a&gt; again &lt;a class=&#34;header-link&#34; href=&#34;#next-step-run-the-auth-tester-again&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;Keep following the FAQ until you can launch a browser, or until you get to the end of the FAQ.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Cannot Access The App</title>
      <link>/docs/authentication/cannot-access-app/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/cannot-access-app/</guid>
      <description>&lt;h5 id=&#34;follow-the-faq-why-can&#34;&gt;Follow the FAQ: &lt;a href=&#34;/faq/why-cant-zap-connect-to-my-website/&#34;&gt;Why can&amp;rsquo;t ZAP connect to my web application?&lt;/a&gt;&lt;/h5&gt;&#xA;&lt;p&gt;Note that if the app does not have a static URL for the login page then you can also try&#xA;using a URL that has a link to the login page.&lt;/p&gt;&#xA;&#xA;&lt;h4 id=&#34;next-step-run-the-auth-tester-again&#34;&gt;Next Step: &lt;a href=&#34;../auth-tester-results/&#34;&gt;Run the Auth Tester&lt;/a&gt; again &lt;a class=&#34;header-link&#34; href=&#34;#next-step-run-the-auth-tester-again&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;If ZAP can access your app but still cannot authenticate then:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Fails to Find The Login Fields</title>
      <link>/docs/authentication/login-fields-not-found/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/login-fields-not-found/</guid>
      <description>&lt;p&gt;We want to make sure that ZAP can automatically fill in as many different types of login forms as possible, so please share details of the page with the &lt;a href=&#34;/support/&#34;&gt;ZAP team&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;We will want to know the HTML fragments for the form and all of the input fields in it. Feel free to obfuscate any sensitive information.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Fails to Identify a Verification URL</title>
      <link>/docs/authentication/manual-verification/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/manual-verification/</guid>
      <description>&lt;p&gt;ZAP has failed to identify a suitable URL to use to verify if the user is logged in, so you will need to do that.&#xA;For more details see &lt;a href=&#34;/docs/getting-further/authentication/finding-a-verification-url/&#34;&gt;Finding a verification URL&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Fails to Identify the Session Handling</title>
      <link>/docs/authentication/manual-session/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/manual-session/</guid>
      <description>&lt;p&gt;ZAP has failed to identify your app&amp;rsquo;s session handling, so you will need to do that.&#xA;For more details see &lt;a href=&#34;/docs/getting-further/authentication/session-handling/&#34;&gt;Session handling&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;If you succeed in identifying the session handling then you will need to also manually identify the verification handling.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Modern Web UI</title>
      <link>/docs/authentication/modern-web-ui/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/modern-web-ui/</guid>
      <description>&lt;p&gt;Your app is &amp;ldquo;modern&amp;rdquo; i.e. it makes heavy use of JavaScript.&lt;/p&gt;&#xA;&lt;p&gt;In order to explore your app in automation you will need to use the &lt;a href=&#34;/docs/desktop/addons/ajax-spider/&#34;&gt;AJAX Spider&lt;/a&gt; - this launches browsers in order to explore your app.&lt;/p&gt;&#xA;&lt;p&gt;Injecting session state into a browser is not always possible, and where it is, it is always application specific.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Multiple Header Based Authentication</title>
      <link>/docs/authentication/multiple-headers/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/multiple-headers/</guid>
      <description>&lt;p&gt;You can do this via:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;/docs/getting-further/authentication/handling-auth-yourself/#replacer-rules&#34;&gt;Replacer Rules&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;/docs/getting-further/authentication/handling-auth-yourself/#scripts&#34;&gt;Scripts&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h5 id=&#34;background&#34;&gt;Background&lt;/h5&gt;&#xA;&lt;p&gt;You have more than one authentication token which you need to supply in HTTP headers.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: No Easy Options</title>
      <link>/docs/authentication/follow-other-guides/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/follow-other-guides/</guid>
      <description>&lt;p&gt;There are currently no easy options available to you, but we have lots of guides that can take you through the more complicated options that ZAP supports.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;getting-further/authentication/&#34;&gt;Guide: Getting Further with Authenticate&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;/blog/2023-02-01-authenticating-using-selenium/&#34;&gt;Blog: Authenticating Using Selenium&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Auth: Preparing to Test</title>
      <link>/docs/authentication/update-the-context/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/update-the-context/</guid>
      <description>&lt;p&gt;Either ZAP has identified all of the information required, or you have found the parts it could not identify.&lt;/p&gt;&#xA;&lt;p&gt;We now need to update the context created by the Authentication Tester to test it.&lt;/p&gt;&#xA;&lt;p&gt;To edit the context double click on the &amp;lsquo;Authentication Test&amp;rsquo; context in the Sites tree.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Record a Login Script</title>
      <link>/docs/authentication/record-a-login-script/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/record-a-login-script/</guid>
      <description>&lt;p&gt;In the Authentication Tester change the &amp;ldquo;Auth Method&amp;rdquo; to &amp;ldquo;Client Script&amp;rdquo; and then click on the &amp;ldquo;Record&amp;hellip;&amp;rdquo; button.&lt;/p&gt;&#xA;&lt;p&gt;ZAP will launch your chosen browser and open the Login URL.&lt;/p&gt;&#xA;&lt;p&gt;Login to your application in the browser and then close it.&lt;/p&gt;&#xA;&lt;p&gt;ZAP will have created and selected a new &amp;ldquo;Client Script&amp;rdquo; which it will use to authenticate when you run the next test.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Session Not Identified</title>
      <link>/docs/authentication/session-not-identified/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/session-not-identified/</guid>
      <description>&lt;h4 id=&#34;next-step-run-the-auth-tester-again&#34;&gt;Next Step: &lt;a href=&#34;../auth-tester-results/&#34;&gt;Run the Auth Tester&lt;/a&gt; again &lt;a class=&#34;header-link&#34; href=&#34;#next-step-run-the-auth-tester-again&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;This time try exploring the app by clicking on links and filling in fields once ZAP has successfully logged in.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Simple Header Based Authentication</title>
      <link>/docs/authentication/one-header/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/one-header/</guid>
      <description>&lt;p&gt;The easiest way to do this will be via &lt;a href=&#34;/docs/getting-further/authentication/handling-auth-yourself/#authentication-env-vars&#34;&gt;Authentication env vars&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Other options are available, as detailed on &lt;a href=&#34;/docs/getting-further/authentication/handling-auth-yourself/&#34;&gt;Handling Authentication Yourself&lt;/a&gt;.&lt;/p&gt;&#xA;&#xA;&lt;h5 id=&#34;background&#34;&gt;Background&lt;/h5&gt;&#xA;&lt;p&gt;You do have a single authentication token which you need to supply in a header.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Support</title>
      <link>/docs/authentication/ask-for-support/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/ask-for-support/</guid>
      <description>&lt;h5 id=&#34;you-have-reached-the-limits-of-this-guide-and-will-need-support&#34;&gt;You have reached the limits of this guide and will need &lt;a href=&#34;/support/&#34;&gt;support&lt;/a&gt;.&lt;/h5&gt;&#xA;&lt;p&gt;Explain:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;That you have followed this guide&lt;/li&gt;&#xA;&lt;li&gt;Exactly which steps you have taken&lt;/li&gt;&#xA;&lt;li&gt;Full details of what went wrong&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If you fail to provide these details then we&amp;rsquo;ll just ask you for them, which will delay the whole process.&#xA;The more information you can provide to us at the start then the quicker we will be able to help you.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Tester Outcome</title>
      <link>/docs/authentication/auth-tester-results/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/auth-tester-results/</guid>
      <description>&lt;p&gt;The &lt;a href=&#34;/blog/2023-05-23-authentication-tester/&#34;&gt;Authentication Tester&lt;/a&gt; will help us understand which parts of the authentication process ZAP can automatically handle.&lt;/p&gt;&#xA;&lt;p&gt;If ZAP can automatically handle things then it will make your life easier.&#xA;Even if it cannot handle everything it may still give you a better starting point.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Token Based Authentication</title>
      <link>/docs/authentication/token-based-authentication/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/token-based-authentication/</guid>
      <description>&lt;p&gt;Your app is either an API or a traditional web app.&lt;/p&gt;&#xA;&lt;p&gt;If you have a reliable token that will not be invalidated during the scan then this is probably your best option to use.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Auth: Verification Not Identified</title>
      <link>/docs/authentication/verification-not-identified/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/authentication/verification-not-identified/</guid>
      <description>&lt;h4 id=&#34;next-step-run-the-auth-tester-again&#34;&gt;Next Step: &lt;a href=&#34;../auth-tester-results/&#34;&gt;Run the Auth Tester&lt;/a&gt; again &lt;a class=&#34;header-link&#34; href=&#34;#next-step-run-the-auth-tester-again&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h4&gt;&#xA;&lt;p&gt;This time try exploring the app by clicking on links and filling in fields once ZAP has successfully logged in.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
