Interface OidcUserMapper

All Known Subinterfaces:
FluxzeroOidcUserMapper
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface OidcUserMapper
Maps a verified session identity to the application's current User, including its own roles and account status. Register one public implementation with a public no-argument constructor in META-INF/services/io.fluxzero.idp.bff.OidcUserMapper. Spring discovers it automatically; other bootstraps use OidcUserProvider.fromServiceLoader(). No OIDC claims imply application permissions automatically. Use FluxzeroOidcUserMapper for an explicit typed view of Fluxzero-specific claims.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.fluxzero.sdk.tracking.handling.authentication.User
    map(OidcUser user, io.fluxzero.sdk.web.WebRequest request)
    The request is available for application policies such as authorized impersonation.
  • Method Details

    • map

      io.fluxzero.sdk.tracking.handling.authentication.User map(OidcUser user, io.fluxzero.sdk.web.WebRequest request)
      The request is available for application policies such as authorized impersonation. Returning null denies access.