ozwillo / ozwillo-datacore

Ozwillo Datacore is a Cloud of shared Open Linked Data. Its goal is cross-business data collaboration and integration. By linking data from different business together, it allows creating value by developing new Ozwillo services on top of it.
http://www.ozwillo.com
GNU Affero General Public License v3.0
3 stars 2 forks source link

Authentication - scalable auth #30

Open mdutoo opened 10 years ago

mdutoo commented 10 years ago

To be scalable, Datacore should not call Kernel for HTTP each request (ex. introspection endpoint to validate Bearer / access token header and get groups). Expiry time for this behaviour should be ex. 1h like Atol access tokens.

20141110 update : the difference in latency between mock auth and OAuth2 Kernel token check has become very visible in the new playground UI auth. The simplest solution is to put a constrained FIFO map cache when checking token in RemoteTokenServices (and possibly when playground gets one in PlaygroundAuthenticationResource).

OBSOLETED on 20141110 :

mdutoo commented 9 years ago

spring-conf'd EHCache of access_token