Sha256: 7678471fc82ee8c175aeada68f6b934a0ae16be0436c62960ce8e4adf32cff6c

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

# Doorkeeper::OAuth::Authorization::Code extensions
# This module extends oauth authorization classes to publish a wisper event when token is issued

module Sso
  module Doorkeeper
    module Authorization
      module CodeMixin
        def issue_token
          super
          broadcast(:access_grant_created, token.id) if @token.try(:id)
          @token
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
doorkeeper_sso-0.4.9 lib/sso/doorkeeper/authorization/code_mixin.rb
doorkeeper_sso-0.4.8 lib/sso/doorkeeper/authorization/code_mixin.rb
doorkeeper_sso-0.4.6 lib/sso/doorkeeper/authorization/code_mixin.rb
doorkeeper_sso-0.4.3 lib/sso/doorkeeper/authorization/code_mixin.rb