<div dir="ltr">Hi all - <div><br></div><div>Apologies in advance that this is probably a n00b question, but I&#39;m struggling to think through the best way to do it.</div><div><br></div><div>Is it possible to have a SP behave such that if a user accesses a URL while authenticated it displays or redirects in one way and if not authenticated neither redirects to the login prompt nor error page but rather displays something different or redirects to a different URL?</div><div><br></div><div>For example, accessing a URL like /webapp/whoami might return...</div><div>-&gt; If authenticated, your username<br></div><div>-&gt; If not authenticated the text &quot;not logged in&quot;</div><div><br></div><div>To extend this concept, accessing a URL like /webapp/classes might return...<br></div><div>-&gt; If authenticated, a list of _my_ classes<br></div><div>-&gt; If not authenticated, a list of all classes in the public catalog (perhaps by redirecting to /webapp/classes/public but by neither redirecting to a login prompt nor showing an error page)</div><div><br></div><div>We are thinking of extending this to a set of REST endpoints that would allow authenticated users to see one thing but unauthenticated users to experience a different behavior. (Some users will never have SSO accounts, hence why we won&#39;t want to prompt everyone to login automatically.) While I&#39;d never implement it this way I&#39;m hoping to avoid something resembling a &quot;send Ajax request, if HTTP 401/403 is returned do something else&quot; pattern in JavaScript logic. Maybe I&#39;m just over-thinking this...</div><div><br></div><div>Thank you, as always, for any advice.</div><div>-George</div><div><br></div><div><br></div></div>