Module: Mumukit::Auth

Extended by:
Core::Configurable
Defined in:
lib/mumukit/auth.rb,
lib/mumukit/auth/role.rb,
lib/mumukit/auth/slug.rb,
lib/mumukit/auth/grant.rb,
lib/mumukit/auth/roles.rb,
lib/mumukit/auth/scope.rb,
lib/mumukit/auth/token.rb,
lib/mumukit/auth/client.rb,
lib/mumukit/auth/version.rb,
lib/mumukit/auth/exceptions.rb

Defined Under Namespace

Modules: Protection, Roles Classes: AllGrant, Client, FirstPartGrant, Grant, InvalidSlugFormatError, InvalidTokenError, Permissions, Role, Scope, SingleGrant, Slug, Token, UnauthorizedAccessError

Constant Summary collapse

VERSION =
'7.14.0'

Class Method Summary collapse

Class Method Details

.defaultsObject



24
25
26
27
28
29
30
31
# File 'lib/mumukit/auth.rb', line 24

def self.defaults
  struct.tap do |config|
    config.clients = struct default: {
        id: ENV['MUMUKI_AUTH_CLIENT_ID'],
        secret: ENV['MUMUKI_AUTH_CLIENT_SECRET']
    }
  end
end