Skip to content

Commit

Permalink
Docs: dont use deprecated methods in OIDC multitenancy guide example
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvavrik committed Dec 12, 2023
1 parent c757c4a commit ff522ed
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 ff522ed

Please sign in to comment.