Skip to content

Read value from Bearer Token and add as RequestHeader for RateLimit #4682

Answered by arkodg
creib asked this question in Q&A
Discussion options

You must be logged in to vote

I dont see x-acme-erp ever being set

    earlyRequestHeaders:
      add:
        - name: "x-acme-erp"
          value: "%REQ(x-extracted-erp)%"

is not going to work because x-extracted-erp doesnt exist yet , this logic kicks in before the filters are applied and x-extracted-erp is appended to the request by a filter (ext auth)

Replies: 7 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@arkodg
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arkodg
Comment options

Comment options

You must be logged in to vote
6 replies
@arkodg
Comment options

@creib
Comment options

@arkodg
Comment options

@arkodg
Comment options

@arkodg
Comment options

Comment options

You must be logged in to vote
1 reply
@arkodg
Comment options

Answer selected by creib
Comment options

You must be logged in to vote
4 replies
@arkodg
Comment options

@gid-fieldcode
Comment options

@arkodg
Comment options

@gid-fieldcode
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants