Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:18:37 +0000.
Sender:Donal Byrne
.
Date:Wednesday, 22 July 2015 14:23:30 UTC+1.
Hi,
I’ve successfully been using the extended ignored paths for my login endpoint but when trying to use with an endpoint which takes a segment it’s been failing and saying ‘authorization field missing’.
I’m using the json files for my apis.
The section:
“extended_paths”: {
“use_extended_paths”: true,
“ignored”: [
{
“path”: “/prefilled/forms/{id}”,
“method_actions”: {
“GET”: {
“action”: “no_action”,
“code”: 200,
“data”: “”,
“headers”: {}
}
},
…
My requests look like: http://localhost:4200/form/prefilled/forms/55af8e640640fd093700000e
And my listent path is
“proxy”: {
“listen_path”: “/access_token/”,
…
The exact same setup seems to be working where I don’t have the ‘{id}’ segment. Is there a wildcard matcher for the paths?
Is my mongo id screwing it up?
Thanks
Imported Google Group message.
Sender:Martin Buhr
.
Date:Wednesday, 22 July 2015 15:22:19 UTC+1.
Hi Donal,
Try removing the preceding slash from the front of the path so:
“path”: “/prefilled/forms/{id}”,
becomes
“path”: “prefilled/forms/{id}”,
Let me know if that works,
Cheers,
Martin
Imported Google Group message.
Sender:
.
Date:Wednesday, 22 July 2015 14:27:07 UTC+1.
Typo in the post above, listen path is in fact
“listen_path”: “/form/”,
Imported Google Group message.
Sender:Donal Byrne
.
Date:Wednesday, 22 July 2015 15:15:58 UTC+1.
Hi Donal,
This may be a silly question, but do youdo a GET or POST to this endpoint?
Thanks,
Martin
Imported Google Group message.
Sender:Donal Byrne
.
Date:Wednesday, 22 July 2015 15:20:03 UTC+1.
Hi Martin,
I’m doing a get yeah 
Imported Google Group message.
Sender:Donal Byrne
.
Date:Wednesday, 22 July 2015 15:24:49 UTC+1.
I just actually spotted that I’d been missing a
},
{
between two of the ignore paths, only the latter was getting picked up. My bad.
Can call off the wild goose chase, sorry