Skip to content

Commit 3473764

Browse files
committed
Removed: unused exception throw from method
1 parent 4c51524 commit 3473764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/edu/harvard/iq/dataverse/authorization/AuthenticationServiceBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ public ApiToken getValidApiTokenForUser(User user) {
992992
* @return An instance of {@link AuthenticatedUser} representing the authenticated user.
993993
* @throws AuthorizationException If the token is invalid or no OIDC provider is configured.
994994
*/
995-
public AuthenticatedUser lookupUserByOIDCBearerToken(String bearerToken) throws AuthorizationException, ParseException {
995+
public AuthenticatedUser lookupUserByOIDCBearerToken(String bearerToken) throws AuthorizationException {
996996
// TODO: Get the identifier from an invalidating cache to avoid lookup bursts of the same token.
997997
// Tokens in the cache should be removed after some (configurable) time.
998998
OAuth2UserRecord oAuth2UserRecord = verifyOIDCBearerTokenAndGetOAuth2UserRecord(bearerToken);

0 commit comments

Comments
 (0)