97: Reactivate authorization
This commit is contained in:
parent
0355c829a1
commit
1b6fd8a17b
@ -270,7 +270,6 @@ public class SupervisorGradingReportPage extends AbstractSupervisorProjectDetail
|
|||||||
@Override
|
@Override
|
||||||
protected void onConfigure() {
|
protected void onConfigure() {
|
||||||
super.onConfigure();
|
super.onConfigure();
|
||||||
/*
|
|
||||||
final Instant expiration = getSession().getMetaData(OAuth.EXPIRATION);
|
final Instant expiration = getSession().getMetaData(OAuth.EXPIRATION);
|
||||||
final boolean validToken = expiration != null && expiration.isAfter(Instant.now());
|
final boolean validToken = expiration != null && expiration.isAfter(Instant.now());
|
||||||
if (!validToken) {
|
if (!validToken) {
|
||||||
@ -281,6 +280,5 @@ public class SupervisorGradingReportPage extends AbstractSupervisorProjectDetail
|
|||||||
final String href = oAuthService.authorizeUrl(null, Set.of("grade:read", "grade:write"));
|
final String href = oAuthService.authorizeUrl(null, Set.of("grade:read", "grade:write"));
|
||||||
throw new RedirectToUrlException(href);
|
throw new RedirectToUrlException(href);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user