Package com.xwiki.azureoauth.script
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if XWiki log in is enabled for guest users.booleanCheck if the XWiki log in switch option should be displayed.
-
Constructor Details
-
EntraIDScriptService
public EntraIDScriptService()
-
-
Method Details
-
isXWikiLoginEnabled
public boolean isXWikiLoginEnabled()Check if XWiki log in is enabled for guest users.- Returns:
trueif global log in is enabled andfalseotherwise.
-
shouldDisplayXWikiLogin
public boolean shouldDisplayXWikiLogin() throws com.xpn.xwiki.XWikiExceptionCheck if the XWiki log in switch option should be displayed.- Returns:
trueif the user is an Azure user and member of the allowed groups andfalseotherwise.- Throws:
com.xpn.xwiki.XWikiException
-