Class AuthOrcid
java.lang.Object
edu.ucsb.nceas.metacat.authentication.AuthOrcid
- All Implemented Interfaces:
AuthInterface
Implementation of AuthInterface for ORCID auth (see orcid.org).
It is needed by the metacat auth plugin framework, but methods are stubbed because they are no
longer appropriate in the context of ORCID-based auth. ORCID is the default authentication
mechanism as of 2024. We currently still support ldap and file-based auth for legacy deployments
(hence the continued need fo the plugin framework), but in order to select these, the operator
has to edit metacat-site.properties by hand.
- Author:
- brooke
-
Field Summary
Fields inherited from interface edu.ucsb.nceas.metacat.AuthInterface
GROUPDESINDEX, GROUPNAMEINDEX, USERCNINDEX, USERDNINDEX, USEREMAILINDEX, USERINFOCNINDEX, USERINFOEMAILINDEX, USERINFOORGANIDEX, USERORGINDEX, USERORGUNITINDEX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(String user, String password) Not supported for ORCID-based authgetAttributes
(String foruser) Get attributes describing a user or groupgetAttributes
(String user, String password, String foruser) Get attributes describing a user or groupString[][]
Not supported for ORCID-based authString[][]
Not supported for ORCID-based authgetPrincipals
(String user, String password) Get all groups and users from authentication service.String[]
getUserInfo
(String user, String password) Not supported for ORCID-based authString[][]
Not supported for ORCID-based authString[]
Not supported for ORCID-based auth
-
Constructor Details
-
AuthOrcid
public AuthOrcid()Constructor
-
-
Method Details
-
authenticate
Not supported for ORCID-based auth- Specified by:
authenticate
in interfaceAuthInterface
- Parameters:
user
- the name of the principal to authenticatepassword
- the password to use for authentication- Throws:
AuthenticationException
-
getUsers
Not supported for ORCID-based auth- Specified by:
getUsers
in interfaceAuthInterface
-
getUserInfo
Not supported for ORCID-based auth- Specified by:
getUserInfo
in interfaceAuthInterface
- Throws:
ConnectException
-
getUsers
Not supported for ORCID-based auth- Specified by:
getUsers
in interfaceAuthInterface
-
getGroups
Not supported for ORCID-based auth- Specified by:
getGroups
in interfaceAuthInterface
- Throws:
ConnectException
-
getGroups
Not supported for ORCID-based auth- Specified by:
getGroups
in interfaceAuthInterface
- Throws:
ConnectException
-
getAttributes
Description copied from interface:AuthInterface
Get attributes describing a user or group- Specified by:
getAttributes
in interfaceAuthInterface
- Throws:
ConnectException
-
getAttributes
public HashMap<String,Vector<String>> getAttributes(String user, String password, String foruser) throws ConnectException Description copied from interface:AuthInterface
Get attributes describing a user or group- Specified by:
getAttributes
in interfaceAuthInterface
- Parameters:
user
- the user for which the attribute list is requestedpassword
- the password for authenticating against the service- Throws:
ConnectException
-
getPrincipals
Description copied from interface:AuthInterface
Get all groups and users from authentication service. The output is formatted in XML.- Specified by:
getPrincipals
in interfaceAuthInterface
- Parameters:
user
- the user which requests the informationpassword
- the user's password- Throws:
ConnectException
-