Class EntraIDScriptService

java.lang.Object
com.xwiki.azureoauth.script.EntraIDScriptService
All Implemented Interfaces:
org.xwiki.script.service.ScriptService

@Component @Named("entraid") @Singleton @Unstable public class EntraIDScriptService extends Object implements org.xwiki.script.service.ScriptService
Entra ID script services.
Since:
2.0
Version:
$Id$
  • Constructor Details

    • EntraIDScriptService

      public EntraIDScriptService()
  • Method Details

    • isXWikiLoginEnabled

      public boolean isXWikiLoginEnabled()
      Check if XWiki log in is enabled for guest users.
      Returns:
      true if global log in is enabled and false otherwise.
    • shouldDisplayXWikiLogin

      public boolean shouldDisplayXWikiLogin() throws com.xpn.xwiki.XWikiException
      Check if the XWiki log in switch option should be displayed.
      Returns:
      true if the user is an Azure user and member of the allowed groups and false otherwise.
      Throws:
      com.xpn.xwiki.XWikiException