Sha256: 2ccaa8feafa7f0abb60bf368bc093225d6c52d73bf8037f61e1c89ccfbbff8d3

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

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

module Sso
  module Doorkeeper
    module Authorization
      module TokenMixin
        def issue_token
          super
          broadcast(:access_token_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/token_mixin.rb
doorkeeper_sso-0.4.8 lib/sso/doorkeeper/authorization/token_mixin.rb
doorkeeper_sso-0.4.6 lib/sso/doorkeeper/authorization/token_mixin.rb
doorkeeper_sso-0.4.3 lib/sso/doorkeeper/authorization/token_mixin.rb