Details

    • Type: Sub-Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Portal Admin

      Access / refresh tokens size and expiration can be customized using DefaultBearerTokenProviderConfiguration

      Developers

      Opaque tokens are implemented by:

      API

      The implementation can be reached by

      1. importing com.liferay.oauth2.provider.rest.spi module
      2. obtaining com.liferay.oauth2.provider.rest.spi.bearer.token.provider.BearerTokenProviderAccessor service from OSGi

      SPI

      The default implementation can be swapped by

      1. importing com.liferay.oauth2.provider.rest.spi module
      2. registering a new com.liferay.oauth2.provider.rest.spi.bearer.token.provider.BearerTokenProvider
      3. setting service properties: name=default and service.ranking:Integer=1

      Developers can register a new token provider for specific application by

      1. importing com.liferay.oauth2.provider.rest.spi module
      2. registering a new com.liferay.oauth2.provider.rest.spi.bearer.token.provider.BearerTokenProvider
      3. setting service properties: liferay.oauth2.client.id=customClientId where customClientId is Client ID property of OAuth2 Application

      For even deeper customizations it is possible to replace BearerTokenProviderAccessor that is responsible for returning the implementations by:

      1. importing com.liferay.oauth2.provider.rest.spi module
      2. registering a new com.liferay.oauth2.provider.rest.spi.bearer.token.provider.BearerTokenProviderAccessor
      3. setting service properties: service.ranking:Integer=1

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package