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.ScriptServiceEntra ID script services.- Since:
- 2.0
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description EntraIDScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisXWikiLoginEnabled()Check if XWiki log in is enabled for guest users.booleanshouldDisplayXWikiLogin()Check if the XWiki log in switch option should be displayed.
-
-
-
Method Detail
-
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
-
-