DuendeSoftware / Support

Support for Duende Software products
21 stars 0 forks source link

Refresh access token manually and display new claims in SPA #1488

Open fdugdale112 opened 2 days ago

fdugdale112 commented 2 days ago

Which version of Duende BFF are you using?

2.2.0

Which version of .NET are you using?

8.0

Describe the bug

How can I refresh the access token manually to acquire new claims that have been added and how can these be shown when calling the '/bff/user' endpoint?

To Reproduce

Expected behavior

/bff/user endpoint show new claim

Log output/exception with stacktrace

Additional context

In my application the signup flow is as follows

the final point here is what I am yet to fully achieve. I have copied some code from the internals of Duende BFF to refresh the access token however upon accessing the /bff/user endpoint im not able to see the claim in my SPA. if I log out and in again it is visible.