Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dmp
OpenAIRE-EUDAT-DMP-service-pilot
Commits
4e87bd27
Commit
4e87bd27
authored
Aug 02, 2021
by
George Kalampokis
Browse files
Improve error handling when user has no zenodo access token
parent
6a2099c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmp-backend/web/src/main/java/eu/eudat/logic/managers/UserManager.java
View file @
4e87bd27
...
...
@@ -167,7 +167,7 @@ public class UserManager {
try
{
this
.
updateDOIToken
(
ZenodoAccessType
.
REFRESH_TOKEN
,
principal
.
getZenodoRefresh
(),
this
.
environment
.
getProperty
(
"zenodo.login.redirect_uri"
),
principal
);
return
true
;
}
catch
(
IO
Exception
e
)
{
}
catch
(
Exception
e
)
{
this
.
deleteDOIToken
(
principal
);
throw
new
ExpiredTokenException
(
"Zenodo Token is expired."
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment