Closed brockallen closed 1 year ago
..and resource indicators?
..and resource indicators?
Currently broken due to this bug: https://github.com/DuendeSoftware/Duende.AccessTokenManagement/issues/34
A little more context: I wrote an IAccessTokenRetriever that sets a resource indicator: https://github.com/DuendeSoftware/BFF/blob/main/samples/JS6/AudienceConstrainedAccessTokenRetriever.cs. That works (even with the bug Brock links to above). We think even simpler would be to set the resource parameter like this:
endpoints.MapRemoteBffApiEndpoint("/api/user-token", "https://localhost:6001")
.WithUserAccessTokenParameter(new BffUserAccessTokenParameters(resource: "urn:example-api"))
.RequireAccessToken(TokenType.User);
But the bug that Brock links to above prevents this from working.
To show off the new IAccessTokenRetriever