Skip to content

Commit

Permalink
Rename cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Jun 23, 2023
1 parent 984d0d7 commit 077b34c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IdentityServer/v6/BFF/DPoP/DPoP.Bff/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void ConfigureServices(IServiceCollection services)
options.SlidingExpiration = false;
// host prefixed cookie name
options.Cookie.Name = "__Host-spa6-dpop";
options.Cookie.Name = "__Host-bff-dpop";
// strict SameSite handling
options.Cookie.SameSite = SameSiteMode.Strict;
Expand Down Expand Up @@ -204,6 +204,7 @@ private static void MapRemoteUrls(IEndpointRouteBuilder endpoints)

// On this path, we require the user token
endpoints.MapRemoteBffApiEndpoint("/api/user-token", "https://localhost:6001")
.WithUserAccessTokenParameter(new BffUserAccessTokenParameters(resource: "urn:example-api"))
.RequireAccessToken(TokenType.User);
}
}

0 comments on commit 077b34c

Please sign in to comment.