Get the JWT access token from within rules


I found four other topics asking the same but I could not find the right answer (see other links at the bottom)

The context_accessToken is just a dictionary which is then used to create the final JWT token.

Can we get the final JWT access token?

I also looked at the hooks but it does not seem to be possible either.


Related links

The rules engine runs before the token is issued. That is why you can add things to it using context.accessToken, otherwise the signature would be invalid after adding anything.

Can you tell us what you are trying to do?

Yes, it makes sense. But there is no hook nor anything that runs after the token is created, encoded and signed?

We want to save some information of the token somewhere but we are using the full token to do that.

The user object in rules contains much of the information of the token. What are you saving and why?

Hi Dan,

It’s ok we found another way.


Sounds good, let us know if you have any other questions.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.