Class OidcClientImpl
java.lang.Object
org.dspace.authenticate.oidc.impl.OidcClientImpl
- All Implemented Interfaces:
OidcClient
Implementation of
OidcClient.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken(String code) Exchange the authorization code for a 3-legged access token.getUserInfo(String accessToken) Retrieve the info related to the user associated with the given accessToken from the user info endpoint.
-
Constructor Details
-
OidcClientImpl
public OidcClientImpl()
-
-
Method Details
-
getAccessToken
Description copied from interface:OidcClientExchange the authorization code for a 3-legged access token. The authorization code expires upon use.- Specified by:
getAccessTokenin interfaceOidcClient- Parameters:
code- the authorization code- Returns:
- the OIDC token
- Throws:
OidcClientException- if some error occurs during the exchange
-
getUserInfo
Description copied from interface:OidcClientRetrieve the info related to the user associated with the given accessToken from the user info endpoint.- Specified by:
getUserInfoin interfaceOidcClient- Parameters:
accessToken- the access token- Returns:
- a map with the user infos
- Throws:
OidcClientException- if some error occurs during the exchange
-