anchor.diff:      end).
   
   
  -unmock_user_logic(Config) ->
  -    Workers = ?config(op_worker_nodes, Config),
  -    test_utils:mock_validate_and_unload(Workers, user_logic).
  +unmock_token_logic(Config) ->
  +    Workers = ?config(op_worker_nodes, Config),
  +    test_utils:mock_validate_and_unload(Workers, token_logic).
  +
  +
  +verify_auth(Worker, TokenAuth) ->
  +    rpc:call(Worker, auth_manager, verify, [TokenAuth]).
  +
  +
  +clear_auth_cache(Worker) ->
  +    rpc:call(Worker, ets, delete_all_objects, [auth_manager]).
  +
  +
  +get_auth_cache_size(Worker) ->
  +    rpc:call(Worker, ets, info, [auth_manager, size]).
  
positive.code: %%%===================================================================
  %%% Test functions
  %%%===================================================================
  
  
  token_authentication(Config) ->
  
negative.code:     unmock_provider_logic(Config),
      unmock_space_logic(Config),
      unmock_user_logic(Config),
      unmock_token_logic(Config),
      ssl:stop().
  
  
  