Giter Club home page Giter Club logo

spring-oauth2-cassandra-token-store's People

Contributors

mert-z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spring-oauth2-cassandra-token-store's Issues

Unable to request access token using refresh token, internal server error

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.

capture

Add new access tokens to "usernameToAccessTokenRepository" and "clientIdToAccessTokenRepository" using UPDATE command

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.

Update current "lookup first then delete if found" operations to "delete by key" statements

Enhacement issue for better performance. Refers to the operations in lines listed below;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.