mert-z / spring-oauth2-cassandra-token-store Goto Github PK
View Code? Open in Web Editor NEWCassandra Token Store for Spring Security OAuth2
License: MIT License
Cassandra Token Store for Spring Security OAuth2
License: MIT License
If the access token is under validity, I am able to get a new access token using refresh token.
If the access token expires, I am not able to get a new one using same refresh token.
The problem occurs in the method removeAccessTokenUsingRefreshToken of CassandraStore class, where the access token ie returned null.
That will avoid so many inserts on multiple tables and decrease the risk of having stale/unsync data between tables. On the other hand this will require migration of existing data to the new schema which can be costly.
Hi, will there be a version for the latest spring-data-cassandra:2.0.x version?
I think your example is better than
https://github.com/welovelain/spring-security-oauth2-cassandra-utils
, but outdated
Current implementation involves a READ before adding access tokens to "usernameToAccessTokenRepository" and "clientIdToAccessTokenRepository" repositories. Instead a new access token can be inserted to a set using the UPDATE command and the addition (+) operator (See Using the set type).
Ex;
UPDATE uname_to_access SET oAuth2AccessTokenSet = oAuth2AccessTokenSet + {'new_access_token'} WHERE key = 'clientId:userName';
Afais, current implementation for "spring-data-cassandra" doesn't provide an API to update a collection. So we may end up implementing custom repository methods for this however we may also need to find a way to wire the underlying UPDATE statement into an existing BATCH list of statements.
Enhacement issue for better performance. Refers to the operations in lines listed below;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.