Skip to content

Commit

Permalink
Changed name of auth_cache_ttl setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
fickludd authored and henriknyman committed Sep 7, 2016
1 parent 07b33c3 commit d2fdb3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -78,7 +78,7 @@ public AuthManager newInstance( Config config, LogProvider logProvider )
// TODO: Load pluggable realms // TODO: Load pluggable realms
} }


long ttl = config.get( SecuritySettings.auth_caching_ttl ); long ttl = config.get( SecuritySettings.auth_cache_ttl );
long maxCapacity = config.get( SecuritySettings.auth_cache_max_capacity ); long maxCapacity = config.get( SecuritySettings.auth_cache_max_capacity );


return new MultiRealmAuthManager( internalRealm, realms, new AuthCache.Manager( Clocks.systemClock(), ttl, maxCapacity ) ); return new MultiRealmAuthManager( internalRealm, realms, new AuthCache.Manager( Clocks.systemClock(), ttl, maxCapacity ) );
Expand Down
Expand Up @@ -143,9 +143,10 @@ public class SecuritySettings
public static Setting<String> ldap_authorization_group_to_role_mapping = public static Setting<String> ldap_authorization_group_to_role_mapping =
setting( "dbms.security.realms.ldap.authorization.group_to_role_mapping", STRING, NO_DEFAULT ); setting( "dbms.security.realms.ldap.authorization.group_to_role_mapping", STRING, NO_DEFAULT );


@Description( "The time to live (TTL) for cached authentication and authorization info." ) @Description( "The time to live (TTL) for cached authentication and authorization info. Setting the TTL to 0 will" +
public static Setting<Long> auth_caching_ttl = " disable auth caching." )
setting( "dbms.security.realms.auth_caching_ttl", DURATION, "10m" ); public static Setting<Long> auth_cache_ttl =
setting( "dbms.security.realms.auth_cache_ttl", DURATION, "10m" );


@Description( "The maximum capacity for authentication and authorization caches (respectively)." ) @Description( "The maximum capacity for authentication and authorization caches (respectively)." )
public static Setting<Long> auth_cache_max_capacity = public static Setting<Long> auth_cache_max_capacity =
Expand Down

0 comments on commit d2fdb3c

Please sign in to comment.