Skip to content

docs: document opt-in Keycloak role mapping for VaadinSecurityConfigurer - #6110

Closed
vaadin-bot wants to merge 1 commit into
mainfrom
doc-bot/vaadin-flow/25627-4cc7a842531312ec
Closed

vaadin-bot wants to merge 1 commit into
mainfrom
doc-bot/vaadin-flow/25627-4cc7a842531312ec

Conversation

@vaadin-bot

Copy link
Copy Markdown
Contributor

Documentation for vaadin/flow#25627 by @totally-not-ai[bot].

Note

The source pull request is merged, so this documentation describes the final
shape of the change. Please review it and mark it ready for review.

Change categories: NEW_FEATURE, API_CHANGE

File Change
articles/flow/integrations/spring/oauth2.adoc Added a "Mapping Keycloak Roles to Authorities" section explaining why Keycloak roles don't reach @RolesAllowed/hasRole by default, and how to fix it with keycloakRoleMapping() next to oauth2LoginPage(), including the direct KeycloakOidcUserMapper alternative for applications with their own OidcUserService.
articles/flow/security/vaadin-security-configurer.adoc Added the keycloakRoleMapping() method to the OAuth2 Configuration section of the VaadinSecurityConfigurer reference, and added OidcUserService to the Shared Objects list.

Auto-generated by the Documentation Bot — review before merging.

Generated by Documentation Bot for #25627 · agent · 96.3 AIC · ⌖ 6.84 AIC · ⊞ 11.7K ·

  • expires on Oct 21, 2026, 1:47 PM UTC

Add a "Mapping Keycloak Roles to Authorities" section to the OAuth2
integration page, and document the keycloakRoleMapping() method and
OidcUserService shared object on the VaadinSecurityConfigurer
reference page.

Documents vaadin/flow#25627 (`375764465d2d84e51bfd9038528b964830be2d3c`).
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-6110.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from 4524727

@Artur- Artur- closed this Sep 22, 2026
@Artur-

Artur- commented Sep 22, 2026

Copy link
Copy Markdown
Member

In #6083

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants