mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 13:39:01 +08:00
🎨 Improving structure / format of the code.
This commit is contained in:
1 parent
42b5ee41da
commit
1929c84b88
1 file changed
+2
-4
+2
-4
@@ -48,10 +48,8 @@ public class PigxAuthorizationCodeServicesImpl extends RandomValueAuthorizationC
|
||||
protected void store(String code, OAuth2Authentication authentication) {
|
||||
@Cleanup
|
||||
RedisConnection connection = connectionFactory.getConnection();
|
||||
connection.set(serializationStrategy.serialize(prefix + code),
|
||||
serializationStrategy.serialize(authentication),
|
||||
Expiration.seconds(expirationTime),
|
||||
RedisStringCommands.SetOption.UPSERT);
|
||||
connection.set(serializationStrategy.serialize(prefix + code), serializationStrategy.serialize(authentication),
|
||||
Expiration.seconds(expirationTime), RedisStringCommands.SetOption.UPSERT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user