KEYCLOAK-52

AccessCode could expire when oauth-client application (OAuth grant flow) is used
This commit is contained in:
Stian Thorgersen 2013-09-18 19:44:56 +01:00
parent 636b197c4c
commit 6a8f838d9c

View file

@ -90,6 +90,7 @@ public class OAuthFlows {
.size() > 0)));
if (!isResource
&& (accessCode.getRealmRolesRequested().size() > 0 || accessCode.getResourceRolesRequested().size() > 0)) {
accessCode.setExpiration(System.currentTimeMillis() / 1000 + realm.getAccessCodeLifespanUserAction());
return oauthGrantPage(accessCode, client);
}