Details

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

      Description

      Disable OAuth2 for particular application

      place this property in the @Component annotation of the Application: liferay.oauth2=false, as an alternative you can create a .config file under osgi/configs named just like the application's class fully qualified name, like osgi/configs/application.class.fully.qualified.name.config with the content:

      liferay.oauth2="false"
      

      Disable OAuth2 checks globally

      To disable OAuth2 checks globally you can create a .config file under osgi/configs named com.liferay.oauth2.provider.scope.internal.jaxrs.feature.LiferayOAuth2OSGiFeature-default.config with, for instance, the following content:

      osgi.jaxrs.application.select=(liferay.oauth2=true)
      

      this will restrict oauth2 scope checks to applications that bear the property liferay.oauth2=true instead to the default opt-out behavior.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package