Comments (4)
I have hit this issue as well. Blazor WASM hosted, .Net 7.
We have a blazor hosted app, on www.mysite.com
The client connects to a hosted signalr application, signalr.mysite.com.
The client needs to connect SignalR client and it needs access token to build the connection.
We are getting IAccessTokerProvider as null in Dependency Injection.
hubConnection = new HubConnectionBuilder()
.WithUrl(NavigationManager.ToAbsoluteUri("/messageshub"), options =>
{
options.AccessTokenProvider = async () =>
{
var accessTokenResult = await tokenProvider.RequestAccessToken();
accessTokenResult.TryGetToken(out var accessToken);
return accessToken.Value;
};
})
.Build();
Is there a way, we can get token while using Bff?
from bff.
Does this help?
from bff.
Two things come to mind
- token exchange
- getting audience constrained tokens if resource isolation is being used
from bff.
Two things come to mind
token exchange
getting audience constrained tokens if resource isolation is being used
Hmm, and would DPoP need to be a concern here? Looking at the code, this would not work today it seems. So we can release this as-is now, and then make DPoP work down the road, or add it now.
from bff.
Related Issues (20)
- Reset to base versions of MS libraries. HOT 1
- Update YARP Integration HOT 1
- Look into a sample for IUserTokenStore with server side sessions HOT 1
- Update to latest Duende.AccessTokenManagement
- Emit log message when we detect ajax calls on endpoints intended for top window
- Sync up the latest License contents from IS 6.3.0
- Consider how to handle DPoP nonce return from API calls
- Review logging output HOT 1
- Starting with BFF 2.0.1 WithAccessToken leads to error 401 HOT 9
- Async GetUserClaims, GetManagementClaims HOT 1
- Consider defaulting to bearer token type when token type is missing HOT 5
- Support for prompt=create HOT 3
- Drop .NET 7 in BFF v3.0
- Switch to .NET 8 diagnostics
- Research formal Blazor support HOT 1
- BFF's SocketsHttpHandler configuration out of sync with Yarp's HOT 1
- Add README for repository and NuGet
- Integrate Yarp's direct forwarding feature
- /bff/logout endpoint passing State to idp/connect/endsession. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bff.