Skip to content

Commit

Permalink
Merge pull request quarkusio#37696 from michalvavrik/docs/oidc-multit…
Browse files Browse the repository at this point in the history
…enancy

Docs: dont use deprecated RoutingContext cookies methods in OIDC multitenancy guide example
  • Loading branch information
sberyozkin authored Dec 12, 2023
2 parents 6f2d773 + ff522ed commit 1825141
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -822,10 +822,10 @@ public class CustomTenantResolver implements TenantResolver {
List<String> tenantIdQuery = context.queryParam("tenantId");
if (!tenantIdQuery.isEmpty()) {
String tenantId = tenantIdQuery.get(0);
context.addCookie(Cookie.cookie("tenant", tenantId));
context.response().addCookie(Cookie.cookie("tenant", tenantId));
return tenantId;
} else if (context.cookieMap().containsKey("tenant")) {
return context.getCookie("tenant").getValue();
} else if (!context.request().cookies("tenant").isEmpty()) {
return context.request().getCookie("tenant").getValue();
}
return null;
Expand Down

0 comments on commit 1825141

Please sign in to comment.