KEYCLOAK-52
AccessCode could expire when oauth-client application (OAuth grant flow) is used
This commit is contained in:
parent
636b197c4c
commit
6a8f838d9c
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue