Re: AW: AW: Suppress or replace WWW-Authorization header

2015-10-30 Thread torsten . rieger
Am 31.10.2015 1:39 vorm. schrieb chris derham : > > > I want to say thank you all for your help and many different ways to solve > > my problem. I think the most -maybe all- will work in an ideal world > > without > > hard requirements through legacy client-applications. I don't want to hold >

Re: AW: AW: Suppress or replace WWW-Authorization header

2015-10-30 Thread chris derham
> I want to say thank you all for your help and many different ways to solve > my problem. I think the most -maybe all- will work in an ideal world without > hard requirements through legacy client-applications. I don't want to hold > on BASIC as auth-method because I like it so much, I prefer to k

AW: AW: AW: Suppress or replace WWW-Authorization header

2015-10-30 Thread Torsten Rieger
I want to say thank you all for your help and many different ways to solve my problem. I think the most -maybe all- will work in an ideal world without hard requirements through legacy client-applications. I don't want to hold on BASIC as auth-method because I like it so much, I prefer to kick that

AW: AW: AW: Suppress or replace WWW-Authorization header

2015-10-30 Thread Torsten Rieger
-Ursprüngliche Nachricht- Von: André Warnier (tomcat) [mailto:a...@ice-sa.com] Gesendet: Mittwoch, 28. Oktober 2015 20:42 An: users@tomcat.apache.org Betreff: Re: AW: AW: Suppress or replace WWW-Authorization header On 28.10.2015 17:42, Torsten Rieger wrote: > -Ursprüngliche Nachri

AW: AW: Suppress or replace WWW-Authorization header

2015-10-30 Thread Torsten Rieger
] Gesendet: Donnerstag, 29. Oktober 2015 15:02 An: Tomcat Users List Betreff: Re: AW: Suppress or replace WWW-Authorization header Chris, On 10/29/15 5:12 AM, chris derham wrote: >>> Torsten, >>> >>> Add an interceptor to AngularJS to detect the 401 and do whatever >>>

Re: AW: Suppress or replace WWW-Authorization header

2015-10-29 Thread Christopher Schultz
Chris, On 10/29/15 5:12 AM, chris derham wrote: >>> Torsten, >>> >>> Add an interceptor to AngularJS to detect the 401 and do whatever you >>> want, e.g. redirect to a login page. Then when you have the >>> credentials, submit to login rest api, get a token, and then make all >>> other calls passi

Re: AW: Suppress or replace WWW-Authorization header

2015-10-29 Thread tomcat
On 29.10.2015 10:12, chris derham wrote: Torsten, Add an interceptor to AngularJS to detect the 401 and do whatever you want, e.g. redirect to a login page. Then when you have the credentials, submit to login rest api, get a token, and then make all other calls passing this token. There are loa

Re: AW: Suppress or replace WWW-Authorization header

2015-10-29 Thread chris derham
>> Torsten, >> >> Add an interceptor to AngularJS to detect the 401 and do whatever you >> want, e.g. redirect to a login page. Then when you have the >> credentials, submit to login rest api, get a token, and then make all >> other calls passing this token. >> >> There are loads of examples on how

Re: AW: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread tomcat
On 28.10.2015 17:42, Torsten Rieger wrote: -Ursprüngliche Nachricht- Von: Aurélien Terrestris [mailto:aterrest...@gmail.com] Gesendet: Mittwoch, 28. Oktober 2015 16:45 An: Tomcat Users List Betreff: Re: AW: Suppress or replace WWW-Authorization header You can choose between a pop-up or

Re: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread Christopher Schultz
Chris, On 10/28/15 11:55 AM, chris derham wrote: >> No, container BASIC authentication should be enabled, the container should >> handle the authentication, but the browser should not show his ugly default >> login dialog when I request resources from the REST-service with wrong >> credentials. >>

Re: AW: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread Christopher Schultz
Torsten, On 10/28/15 11:28 AM, Torsten Rieger wrote: > -Ursprüngliche Nachricht- > Von: Christopher Schultz [mailto:ch...@christopherschultz.net] > Gesendet: Mittwoch, 28. Oktober 2015 15:39 > An: Tomcat Users List > Betreff: Re: AW: Suppress or replace WWW-Autho

RE: AW: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread George Stanchev
On 28.10.2015 17:42, Torsten Rieger wrote: > -Ursprüngliche Nachricht- > Von: Aurélien Terrestris [mailto:aterrest...@gmail.com] > Gesendet: Mittwoch, 28. Oktober 2015 16:45 > An: Tomcat Users List > Betreff: Re: AW: Suppress or replace WWW-Authorization header > > Y

Re: AW: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread Andy Wang
On 10/28/2015 12:04 PM, André Warnier (tomcat) wrote: The server supports two kinds of deployment: Standalone with an embedded Jetty-server and as war-file for app-servers (most of them are tomcat-server). I try to suppress the browser BASIC-login-dialog for the REST-service-calls from AngularJ

Re: AW: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread tomcat
On 28.10.2015 17:42, Torsten Rieger wrote: -Ursprüngliche Nachricht- Von: Aurélien Terrestris [mailto:aterrest...@gmail.com] Gesendet: Mittwoch, 28. Oktober 2015 16:45 An: Tomcat Users List Betreff: Re: AW: Suppress or replace WWW-Authorization header You can choose between a pop-up or

Re: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread tomcat
On 28.10.2015 16:55, chris derham wrote: No, container BASIC authentication should be enabled, the container should handle the authentication, but the browser should not show his ugly default login dialog when I request resources from the REST-service with wrong credentials. When the REST-client

AW: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread Torsten Rieger
-Ursprüngliche Nachricht- Von: Aurélien Terrestris [mailto:aterrest...@gmail.com] Gesendet: Mittwoch, 28. Oktober 2015 16:45 An: Tomcat Users List Betreff: Re: AW: Suppress or replace WWW-Authorization header You can choose between a pop-up or an HTML FORM This one looks like this in

Re: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread chris derham
> No, container BASIC authentication should be enabled, the container should > handle the authentication, but the browser should not show his ugly default > login dialog when I request resources from the REST-service with wrong > credentials. > When the REST-client (web-application in the browser)

Re: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread Aurélien Terrestris
chultz [mailto:ch...@christopherschultz.net] > Gesendet: Mittwoch, 28. Oktober 2015 15:39 > An: Tomcat Users List > Betreff: Re: AW: Suppress or replace WWW-Authorization header > > Torsten, > > On 10/28/15 8:19 AM, Torsten Rieger wrote: > > I have a legacy java-SOA

AW: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread Torsten Rieger
-Ursprüngliche Nachricht- Von: Christopher Schultz [mailto:ch...@christopherschultz.net] Gesendet: Mittwoch, 28. Oktober 2015 15:39 An: Tomcat Users List Betreff: Re: AW: Suppress or replace WWW-Authorization header Torsten, On 10/28/15 8:19 AM, Torsten Rieger wrote: > I have a leg

Re: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread tomcat
On 28.10.2015 15:39, Christopher Schultz wrote: Torsten, On 10/28/15 8:19 AM, Torsten Rieger wrote: I have a legacy java-SOAP-client that only supports BASIC authentication (send the Authorization: Basic... header) and a AngularJS application that consumes a REST-service (also sending the Autho

Re: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread Christopher Schultz
Torsten, On 10/28/15 8:19 AM, Torsten Rieger wrote: > I have a legacy java-SOAP-client that only supports BASIC authentication > (send the Authorization: Basic... header) and a AngularJS application that > consumes a REST-service (also sending the Authorization: Basic header). > > The server supp

Re: AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread tomcat
Then there would be no need to play with the 401 header, because there would never be one). -Ursprüngliche Nachricht- Von: André Warnier (tomcat) [mailto:a...@ice-sa.com] Gesendet: Mittwoch, 28. Oktober 2015 10:26 An: users@tomcat.apache.org Betreff: Re: Suppress or replace WWW-Authorizat

AW: Suppress or replace WWW-Authorization header

2015-10-28 Thread Torsten Rieger
application server level. -Ursprüngliche Nachricht- Von: André Warnier (tomcat) [mailto:a...@ice-sa.com] Gesendet: Mittwoch, 28. Oktober 2015 10:26 An: users@tomcat.apache.org Betreff: Re: Suppress or replace WWW-Authorization header Hi. On 28.10.2015 09:36, Torsten Rieger wrote: > Hi, &

Re: Suppress or replace WWW-Authorization header

2015-10-28 Thread tomcat
Hi. On 28.10.2015 09:36, Torsten Rieger wrote: Hi, I try to suppress the browser login-dialog on basic authentication (basic is a legacy requirement), how can I do that? Filters are called after login on the container, right? I am not sure that I understand exactly what you mean here, and

Suppress or replace WWW-Authorization header

2015-10-28 Thread Torsten Rieger
Hi, I try to suppress the browser login-dialog on basic authentication (basic is a legacy requirement), how can I do that? Filters are called after login on the container, right? Regards, Torsten