Module: Authorio

Defined in:
lib/authorio.rb,
lib/authorio/engine.rb,
lib/authorio/version.rb,
lib/authorio/exceptions.rb,
app/models/authorio/user.rb,
app/models/authorio/token.rb,
lib/authorio/configuration.rb,
app/models/authorio/request.rb,
app/models/authorio/session.rb,
app/helpers/authorio/tag_helper.rb,
app/jobs/authorio/application_job.rb,
app/models/authorio/application_record.rb,
app/controllers/authorio/auth_controller.rb,
app/controllers/authorio/users_controller.rb,
app/controllers/authorio/authorio_controller.rb,
app/controllers/authorio/sessions_controller.rb,
lib/generators/authorio/install/install_generator.rb

Defined Under Namespace

Modules: Exceptions, TagHelper Classes: ApplicationJob, ApplicationRecord, AuthController, AuthorioController, Configuration, Engine, InstallGenerator, Request, Session, SessionsController, Token, User, UsersController

Constant Summary collapse

VERSION =
'0.8.7'

Class Method Summary collapse

Class Method Details

.authorization_pathObject



14
15
16
# File 'lib/authorio.rb', line 14

def self.authorization_path
  [Authorio.configuration.mount_point, Authorio.configuration.authorization_endpoint].join('/')
end

.configurationObject



6
7
8
# File 'lib/authorio.rb', line 6

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



10
11
12
# File 'lib/authorio.rb', line 10

def self.configure
  yield configuration
end

.token_pathObject



18
19
20
# File 'lib/authorio.rb', line 18

def self.token_path
  [Authorio.configuration.mount_point, Authorio.configuration.token_endpoint].join('/')
end