Use empty map for missing additional parameters

Closes gh-1826
This commit is contained in:
Leon Linhart
2024-11-15 19:02:15 +01:00
committed by Joe Grandja
parent 6880661766
commit e8f627f01e
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 the original author or authors.
* Copyright 2020-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -96,7 +96,7 @@ public class OAuth2DeviceAuthorizationRequestAuthenticationToken extends Abstrac
this.deviceCode = deviceCode;
this.userCode = userCode;
this.authorizationUri = null;
this.additionalParameters = null;
this.additionalParameters = Collections.emptyMap();
setAuthenticated(true);
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 the original author or authors.
* Copyright 2020-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -80,7 +80,7 @@ public class OAuth2DeviceVerificationAuthenticationToken extends AbstractAuthent
this.principal = principal;
this.userCode = userCode;
this.clientId = clientId;
this.additionalParameters = null;
this.additionalParameters = Collections.emptyMap();
setAuthenticated(true);
}