nullsafe check for refresh
parent
4c3c2dce52
commit
87c8672948
|
@ -250,7 +250,11 @@ public class ClientDetailsEntity implements ClientDetails {
|
||||||
*/
|
*/
|
||||||
@Transient
|
@Transient
|
||||||
public boolean isAllowRefresh() {
|
public boolean isAllowRefresh() {
|
||||||
|
if (grantTypes != null) {
|
||||||
return getAuthorizedGrantTypes().contains("refresh_token");
|
return getAuthorizedGrantTypes().contains("refresh_token");
|
||||||
|
} else {
|
||||||
|
return false; // if there are no grants, we can't be refreshing them, can we?
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Basic
|
@Basic
|
||||||
|
|
Loading…
Reference in New Issue