Package edu.ucsb.nceas.metacat.admin
Class AuthAdmin
java.lang.Object
edu.ucsb.nceas.metacat.admin.MetacatAdmin
edu.ucsb.nceas.metacat.admin.AuthAdmin
Control the display of the Authentication configuration page and the processing of the
configuration values.
-
Field Summary
Fields inherited from class edu.ucsb.nceas.metacat.admin.MetacatAdmin
COMPLETE, FAILURE, IN_PROGRESS, NOT_REQUIRED, PENDING, SUCCESS, UNKNOWN
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureAuth
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Handle configuration of the Authentication propertiesstatic AuthAdmin
Get the single instance of the MetaCatConfig.validateOptions
(javax.servlet.http.HttpServletRequest request) Validate that a user has supplied an ORCID identifier by parsing the http request's 'auth.administrators' parameter.Methods inherited from class edu.ucsb.nceas.metacat.admin.MetacatAdmin
updateUpgradeStatus
-
Field Details
-
FILECLASS
- See Also:
-
LDAPCLASS
- See Also:
-
-
Method Details
-
getInstance
Get the single instance of the MetaCatConfig.- Returns:
- the single instance of MetaCatConfig
-
configureAuth
public void configureAuth(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws AdminException Handle configuration of the Authentication properties- Parameters:
request
- the http request informationresponse
- the http response to be sent back to the client- Throws:
AdminException
-
validateOptions
Validate that a user has supplied an ORCID identifier by parsing the http request's 'auth.administrators' parameter. AuthSessions were previously created based on a selected authentication class. As LDAP and Password based authentication is being deprecated, we no longer have to check for a valid authentication class. The user is now (2024) expected to provide an ORCID ID of the form http://orcid.org/0000-0003-0958-4367 (http, NOT https)- Specified by:
validateOptions
in classMetacatAdmin
- Parameters:
request
- Http request- Returns:
- a vector holding error message for any fields that fail validation.
-