Skip to content

Latest commit

 

History

History

authentication

portal-authentication

What is it?

Groups all modules providing authentication and authorization for the cuioss-portal.

Within your code, you usually interact with types from portal-authentication-api.

It is assumed that at least one of the runtime modules is available:

  • portal-authentication-oauth: Default implementation for integrating against oauth2 / OICD.

  • portal-authentication-dummy: Implementation for cases where it is only needed technically. The implementation will always return a not-authenticated UserInfo. In contrast to 'portal-authentication-mock' this module can be used in production environments.

  • portal-authentication-mock: Implementation for cases where it is only needed technically or for documentation purpose. In contrast to 'portal-authentication-dummy' this module must never be used in production environments.

Usage

The central object ist the @Dependent-scoped AuthenticatedUserInfo that has a number of methods interacting with the logged-in user.

    @Inject
    private AuthenticatedUserInfo userProvider;

See portal-authentication-api for more details