Sha256: 2f77e352ca359e51f8b8872737fd0e198504247c10ca3191d01cf7635baa09ea

Contents?: true

Size: 924 Bytes

Versions: 4

Compression:

Stored size: 924 Bytes

Contents

require 'social_stream-base'

require 'rack/oauth2'

module SocialStream
  module Oauth2Server
    module Controllers
      autoload :Helpers,  'social_stream/oauth2_server/controllers/helpers'
    end

    module Models
      autoload :Actor, 'social_stream/oauth2_server/models/actor'
      autoload :User, 'social_stream/oauth2_server/models/user'
    end

    autoload :Ability,       'social_stream/oauth2_server/ability'
    autoload :TokenEndpoint, 'social_stream/oauth2_server/token_endpoint'
  end

  # Define default custom relations for Site::Client
  SocialStream.custom_relations['site/client'] = {}

  # Relations that appear in the Site::Client list
  SocialStream.list_relations['site/client'] = [ :manager ]

  SocialStream.available_permissions['site/client'] = [
    [ 'manage', nil ],
    [ 'manage', 'relation/custom' ],
    [ 'manage', 'contact' ]
  ]
end

require 'social_stream/oauth2_server/engine'

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
social_stream-2.1.1 oauth2_server/lib/social_stream/oauth2_server.rb
social_stream-oauth2_server-2.1.1 lib/social_stream/oauth2_server.rb
social_stream-2.1.0 oauth2_server/lib/social_stream/oauth2_server.rb
social_stream-oauth2_server-2.1.0 lib/social_stream/oauth2_server.rb