Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oauth: allow using templates in OAuth response template
airbyte has recently introduced new fields to their OAuth response mappings, which need processing. In this case, we have AirTable which requires the `expires_in` field of response to be added to `now()` and rendered as an RFC3339 date to work. So I'm adding a condition here which allows response map to be rendered using a template instead of just jsonpointer. In hindsight, we can probably just get rid of jsonpointers here and use mustache templates for the responseMap since it can do the same job anyway. For now I'm keeping both.
- Loading branch information