Module: Authify::API

Defined in:
lib/authify/api.rb,
lib/authify/api/metrics.rb,
lib/authify/api/service.rb,
lib/authify/api/version.rb,
lib/authify/api/models/user.rb,
lib/authify/api/models/group.rb,
lib/authify/api/services/api.rb,
lib/authify/api/jsonapi_utils.rb,
lib/authify/api/models/apikey.rb,
lib/authify/api/models/identity.rb,
lib/authify/api/controllers/user.rb,
lib/authify/api/helpers/api_user.rb,
lib/authify/api/controllers/group.rb,
lib/authify/api/controllers/apikey.rb,
lib/authify/api/middleware/metrics.rb,
lib/authify/api/models/organization.rb,
lib/authify/api/services/monitoring.rb,
lib/authify/api/controllers/identity.rb,
lib/authify/api/services/jwt_provider.rb,
lib/authify/api/services/registration.rb,
lib/authify/api/helpers/jwt_encryption.rb,
lib/authify/api/helpers/text_processing.rb,
lib/authify/api/models/trusted_delegate.rb,
lib/authify/api/controllers/organization.rb,
lib/authify/api/serializers/user_serializer.rb,
lib/authify/api/controllers/trusted_delegate.rb,
lib/authify/api/serializers/group_serializer.rb,
lib/authify/api/serializers/apikey_serializer.rb,
lib/authify/api/models/organization_membership.rb,
lib/authify/api/serializers/identity_serializer.rb,
lib/authify/api/serializers/organization_serializer.rb,
lib/authify/api/serializers/trusted_delegate_serializer.rb

Defined Under Namespace

Modules: Controllers, Helpers, JSONAPIUtils, Middleware, Models, Serializers, Services Classes: Metrics, Service

Constant Summary collapse

CONFIG =
Core::CONFIG.merge(
  db: {
    url: ENV['AUTHIFY_DB_URL'] || 'mysql2://root@localhost:3306/authifydb'
  },
  redis: {
    host: ENV['AUTHIFY_REDIS_HOST'] || 'localhost',
    port: ENV['AUTHIFY_REDIS_PORT'] || '6379'
  },
  verifications: {
    required: ENV['AUTHIFY_VERIFICATIONS_REQUIRED'] == 'false' ? false : true
  }
)
VERSION =
[
  0, # Major
  5, # Minor
  0  # Patch
].join('.')