Sha256: 6dff22acb1d864e048f76faf40f6f7f54beaeb3ff5a079e50cab955cddcb9e91

Contents?: true

Size: 350 Bytes

Versions: 8

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/numeric/time'

module Wso2Toolbox
  module TokenManager
    def self.generate_token
      if defined?(RailsSettings)
        TokenManager::Adapters::RailsCachedAdapter.generate_token
      else
        TokenManager::Adapters::LocalFileAdapter.generate_token
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wso2_toolbox-0.3.3 lib/wso2_toolbox/token_manager.rb
wso2_toolbox-0.3.2 lib/wso2_toolbox/token_manager.rb
wso2_toolbox-0.3.1 lib/wso2_toolbox/token_manager.rb
wso2_toolbox-0.3.0 lib/wso2_toolbox/token_manager.rb
wso2_toolbox-0.2.3 lib/wso2_toolbox/token_manager.rb
wso2_toolbox-0.2.2 lib/wso2_toolbox/token_manager.rb
wso2_toolbox-0.2.1 lib/wso2_toolbox/token_manager.rb
wso2_toolbox-0.2.0 lib/wso2_toolbox/token_manager.rb