kalleantero / kalleantero.github.io

0 stars 0 forks source link

https://www.kallemarjokorpi.fi/blog/request-routing-in-bff.html #23

Open utterances-bot opened 10 months ago

utterances-bot commented 10 months ago

How to implement request routing for BFF with YARP - Blog by Kalle Marjokorpi

This blog is concentrated to Microsoft and cloud technology, coding and architecture. Solutions, tips and knowledge from a developer to developer.

https://www.kallemarjokorpi.fi/blog/request-routing-in-bff.html

dfreger commented 10 months ago

Hello thank you for your dscription.

One question:

// 11. Enable BFF login, logout and userinfo endpoints endpoints.AddBffEndpoints();

I don't this method. What I have to install?

thank you

kalleantero commented 6 months ago

Hello @dfreger! If I remember correctly AddBffEndpoints extension is available in Duende BFF library.

youssefbennour commented 1 month ago

using this method, doesn't refresh the access token when it's expired:

var accessToken = await transformContext.HttpContext.GetTokenAsync("access_token");

Consider using this method as it does the refresh process automatically:

var accessToken = await transformContext.HttpContext.GetUserAccessTokenAsync();