Class ShibbolethAuthenticationServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.shibboleth.service.ShibbolethAuthenticationServiceImpl
- All Implemented Interfaces:
ShibbolethAuthenticationService,Adaptable,Component,Extensible,TimestampedService
public class ShibbolethAuthenticationServiceImpl
extends DefaultComponent
implements ShibbolethAuthenticationService
-
Field Summary
FieldsFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLoginURL(jakarta.servlet.http.HttpServletRequest request) Returns the computed login URL to Shibboleth , ornullif no login URL is configured.getLoginURL(String redirectURL) Returns the computed login URL to Shibboleth , ornullif no login URL is configured.getLogoutURL(jakarta.servlet.http.HttpServletRequest request) Returns the computed logout URL to Shibboleth, ornullif no logout URL is configured.getLogoutURL(String redirectURL) Returns the computed logout URL to Shibboleth, ornullif no logout URL is configured.getUserID(jakarta.servlet.http.HttpServletRequest httpRequest) Returns the user ID based on the source IdP.Returns a bi-map of the user metadata {response headers, values} based on the configuration.getUserMetadata(String userIdField, jakarta.servlet.http.HttpServletRequest httpRequest) Returns a map of the user metadata based on the configuration.protected StringreadHeader(jakarta.servlet.http.HttpServletRequest request, String key) voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
CONFIG_EP
- See Also:
-
config
-
-
Constructor Details
-
ShibbolethAuthenticationServiceImpl
public ShibbolethAuthenticationServiceImpl()
-
-
Method Details
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
getConfig
-
getLoginURL
Description copied from interface:ShibbolethAuthenticationServiceReturns the computed login URL to Shibboleth , ornullif no login URL is configured.- Specified by:
getLoginURLin interfaceShibbolethAuthenticationService
-
getLogoutURL
Description copied from interface:ShibbolethAuthenticationServiceReturns the computed logout URL to Shibboleth, ornullif no logout URL is configured.- Specified by:
getLogoutURLin interfaceShibbolethAuthenticationService
-
getLoginURL
Description copied from interface:ShibbolethAuthenticationServiceReturns the computed login URL to Shibboleth , ornullif no login URL is configured.- Specified by:
getLoginURLin interfaceShibbolethAuthenticationService
-
getLogoutURL
Description copied from interface:ShibbolethAuthenticationServiceReturns the computed logout URL to Shibboleth, ornullif no logout URL is configured.- Specified by:
getLogoutURLin interfaceShibbolethAuthenticationService
-
getUserID
Description copied from interface:ShibbolethAuthenticationServiceReturns the user ID based on the source IdP. In the configuration is defined which HTTP header is used for each registered IdP.- Specified by:
getUserIDin interfaceShibbolethAuthenticationService
-
getUserMetadata
public Map<String,Object> getUserMetadata(String userIdField, jakarta.servlet.http.HttpServletRequest httpRequest) Description copied from interface:ShibbolethAuthenticationServiceReturns a map of the user metadata based on the configuration. Keys are the field names and values coming from the HTTP headers.- Specified by:
getUserMetadatain interfaceShibbolethAuthenticationService
-
getUserMetadata
Description copied from interface:ShibbolethAuthenticationServiceReturns a bi-map of the user metadata {response headers, values} based on the configuration.- Specified by:
getUserMetadatain interfaceShibbolethAuthenticationService
-
readHeader
-