Conversation
|
hi @en-milie @Stranger6667 , I added some fields to the |
|
To be honest I'll make this a bit more generic and easier to extend for the future. Something like: TokenHandling:
type: object
properties:
extractFrom:
type: string
enum: ["body", "header"]
extractPath:
type: string
description: "JSON Pointer for body extraction, or header name for header extraction"
sendIn:
type: string
enum: ["header", "query", "cookie"]
sendName:
type: string
description: "Header/query/cookie name where token should be sent"
sendFormat:
type: string
description: "Template with {token} placeholder. Default: '{token}'"
default: "{token}"
required: ["extractFrom", "extractPath", "sendIn", "sendName"] |
|
hi @ludovicianul , thanks for your input. Let me discuss it point by point:
that's good
having same field for body and header handling is fine, but I do not particularly like the name
good for
the idea was that, if you expect a cookie, you can just use a boolean to say send back all cookies received when doing authenticated calls. or are the cases in which this would be too limited?
yep, that's a good idea, and likely easier to handle than separated suffix and prefix. @Stranger6667 what do you think? |
|
Yes, apologies, I've missed the |
|
@ludovicianul @Stranger6667 |
|
Looks good! |
Stranger6667
left a comment
There was a problem hiding this comment.
Minor bikeshedding with the property name, but otherwise it is a really nice improvement :)
| type: string | ||
| examples: | ||
| - "Authorization" | ||
| sendFormat: |
There was a problem hiding this comment.
nit: sendTemplate maybe? as it is described as a template below.
|
@Stranger6667 @ludovicianul recall that, while going through the specs, feel free to suggests improvements/changes. we can then discuss them |
No description provided.