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!