Skip to content

Commit

Permalink
bugFix/remote-address-bug-fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-zip committed May 25, 2024
1 parent 7dc8cc9 commit 1a4431b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.bloggios.authentication-config</groupId>
<artifactId>authentication-configuration-jar</artifactId>
<version>1.0</version>
<version>1.1</version>
<name>authentication-configuration-jar</name>
<description>authentication-configuration-jar</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public String extractEmail(String token) {
public String extractClientIp(String token) {
try {
Jwt jwt = jwtDecoder.decode(token);
return jwt.getClaimAsString("clientIp");
return jwt.getClaimAsString("remoteAddress");
} catch (Exception e) {
logger.error("Exception Occurred while extracting Client IP from token with default message as : {}", e.getMessage());
throw new AuthenticationConfigException("Unable to extract Client IP from the Token");
Expand Down

0 comments on commit 1a4431b

Please sign in to comment.