<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" >I am assuming that you meant redirecting on the server side. We already have a similar one in place on the client side. <a href="https://github.com/openstack/horizon/blob/master/horizon/static/framework/framework.module.js#L65" >https://github.com/openstack/horizon/blob/master/horizon/static/framework/framework.module.js#L65</a></div>
<div dir="ltr" > </div>
<div dir="ltr" >Currently, you're not able to hit the REST layer directly anyway, You get a "request must be ajax" message. You have to login and then use a REST client if you want data. So here's my noob question of the day, what are we gaining in addition if we redirect on the server side? Totally not meant to be a show stopper, just wondering what the benefits are.</div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: David Lyle <dklyle0@gmail.com><br>To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org><br>Cc:<br>Subject: Re: [openstack-dev] [Horizon] Handling 401 in new REST API<br>Date: Thu, Jan 28, 2016 8:46 AM<br>
<div><font face="Default Monospace,Courier New,Courier,monospace" size="2" >I think that's the sane thing to do.<br><br>David<br><br>On Thu, Jan 28, 2016 at 2:55 AM, Richard Jones <r1chardj0n3s@gmail.com> wrote:<br>> Hi fellow angular/REST Horizon developers,<br>><br>> I'd like to propose that we handle HTTP 401 responses at the core of the new<br>> angular code interfacing to our new REST API so that *any* 401 just does<br>> basically what the Django code used to: redirect to the login page with a<br>> "from".<br>><br>> What do y'all think?<br>><br>><br>> Richard<br>><br>><br>> __________________________________________________________________________<br>> OpenStack Development Mailing List (not for usage questions)<br>> Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank" >http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>><br><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank" >http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font><br> </div></blockquote>
<div dir="ltr" > </div></div><BR>