Great. Thanks for letting us know!
> >
> >
> > What i observed :
> > Spidering is successful on ZAP GUI - by selecting the context and
> > username manually and run spider (recursively found 2000+ urls)
> >
> > On calling the spider API (
http://zap/UI/spider/action/scanAsUser/
> > recurse true - The authentication is successful, but seems like the
> > crawling is not complete(found only 20+ urls). The logged in
> indicators
> > are set(assuming they are correct, as it works fine in GUI).
> >
> > Running spider in ZAP GUI with recursive "disabled", gives the result
> > same as spidering through API - i.e found only 20+ urls
> >
> > Seems like the Spider scan-as-user API doesn't take the recurse
> option
> > or by default it is taking "disabled".
> >
> > Is it a bug?? or am i missing something?? please guide me..
> >
> >
> > I also observed that Spider scan-as-user API call posts ZAP in
> username
> > and password instead of the stored user credentials. Seems like this
> > issue was already reported in
> >
https://github.com/zaproxy/zaproxy/issues/2079