Skip to content

Enable token reuse in regex mode to support on-demand Bearer refresh (fixes #15)#19

Open
pavelkrejci wants to merge 1 commit intolorenzog:masterfrom
pavelkrejci:master
Open

Enable token reuse in regex mode to support on-demand Bearer refresh (fixes #15)#19
pavelkrejci wants to merge 1 commit intolorenzog:masterfrom
pavelkrejci:master

Conversation

@pavelkrejci
Copy link
Copy Markdown

Change affects only the regex mode. The last token grabbed from a macro output is stored and applied out of macro context or when no regex matches. This way the step "Add Customer Handler" can be used at the beginning of session rule, followed by "Check session is valid", and being again the last step of a refresh token macro. This is especially useful for Authorization Bearer refresh only on demand, only when the current request's Bearer expires and response is 401 unauthorized.

Fixes #15

…ro output is stored and applied out of macro context or when no regex matches. This way the step "Add Customer Handler" can be used at the beginning of session rule, followed by "Check session is valid", and being again the last step of a refresh token macro. This is especially useful for Authorization Bearer refresh only on demand, only when the current request's Bearer expires and response is 401 unauthorized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Replace token only after expiration

2 participants