Redirection from rule and Authz Role evaluation

Documentation says that a rule may redirect to an external system and then redirect back to continue with the pipeline. A typical scenario is to add information to their profile.

Problem: I find that authz-core roles which are assigned to the user by the external system during the redirection flow don’t take effect in the current pipeline. In other words, the permissions block in the resultant access token doesn’t reflect the role assignments made during the pipeline. Subsequent pipelines are fine.

Is there a way to dynamically assign a role in the current pipeline? One scenario is to populate the initial roles for a new user account.

Thanks!

Upon further testing, seems the issue was due to a race condition on my end. Happy to say that the technique that I mentioned does work as expected.

1 Like

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