Re: [Dev] [APIM][1.10] Setting HTTP_SC in Auth failure handler does not work

2018-01-31 Thread Malintha Amarasinghe
On Wed, Jan 31, 2018 at 8:39 PM, Harsha Kumara wrote: > > > On Wed, Jan 31, 2018 at 8:37 PM, Isuru Haththotuwa > wrote: > >> >> >> On Wed, Jan 31, 2018 at 8:19 PM, Malintha Amarasinghe > > wrote: >> >>> Hi All, >>> >>> Shall we move our sequence execution logic [1] such a way that it is >>> foll

Re: [Dev] [APIM][1.10] Setting HTTP_SC in Auth failure handler does not work

2018-01-31 Thread Harsha Kumara
On Wed, Jan 31, 2018 at 8:37 PM, Isuru Haththotuwa wrote: > > > On Wed, Jan 31, 2018 at 8:19 PM, Malintha Amarasinghe > wrote: > >> Hi All, >> >> Shall we move our sequence execution logic [1] such a way that it is >> followed by response setting logic in the code [2]? Currently, it is >> preced

Re: [Dev] [APIM][1.10] Setting HTTP_SC in Auth failure handler does not work

2018-01-31 Thread Isuru Haththotuwa
On Wed, Jan 31, 2018 at 8:19 PM, Malintha Amarasinghe wrote: > Hi All, > > Shall we move our sequence execution logic [1] such a way that it is > followed by response setting logic in the code [2]? Currently, it is > preceded by [2] so whatever we set in the sequence is getting overridden by > th

Re: [Dev] [APIM][1.10] Setting HTTP_SC in Auth failure handler does not work

2018-01-31 Thread Malintha Amarasinghe
Hi All, Shall we move our sequence execution logic [1] such a way that it is followed by response setting logic in the code [2]? Currently, it is preceded by [2] so whatever we set in the sequence is getting overridden by the code [2]. That needs to happen in the other way round ideally. If we do

Re: [Dev] [APIM][1.10] Setting HTTP_SC in Auth failure handler does not work

2018-01-30 Thread Sanjeewa Malalgoda
Yes send from custom sequence and then drop flow will work. Its better to maintain separate convert sequence. Thanks, sanjeewa. On Wed, Jan 31, 2018 at 8:21 AM, Harsha Kumara wrote: > Hi Lahiru, > > I think it's not possible to override it but you can follow [1] to do it > in a separate way. >

Re: [Dev] [APIM][1.10] Setting HTTP_SC in Auth failure handler does not work

2018-01-30 Thread Lahiru Sandaruwan
I see. Will follow that and set the code, respond from the sequence then. Thanks. On Tue, Jan 30, 2018 at 9:28 PM, Sanjeewa Malalgoda wrote: > Yes send from custom sequence and then drop flow will work. Its better to > maintain separate convert sequence. > > Thanks, > sanjeewa. > > On Wed, Jan

Re: [Dev] [APIM][1.10] Setting HTTP_SC in Auth failure handler does not work

2018-01-30 Thread Harsha Kumara
Hi Lahiru, I think it's not possible to override it but you can follow [1] to do it in a separate way. [1] http://sanjeewamalalgoda.blogspot.com/2015/04/how-to-generate-custom-error-message.html Thanks, Harsha On Wed, Jan 31, 2018 at 2:08 AM, Lahiru Sandaruwan wrote: > Hi, > > I changed _auth

[Dev] [APIM][1.10] Setting HTTP_SC in Auth failure handler does not work

2018-01-30 Thread Lahiru Sandaruwan
Hi, I changed _auth_failure_handler_ to set HTTP code to 498. But it still responds with 401. My handler after change is as follows, http://ws.apache.org/ns/synapse";> Anything wrong with my config? Thanks. -- -- Lahiru Sandaruwan Associate Technical Lead, WSO2 Inc., http://w