Class: Toolchest::OauthApplication

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/toolchest/oauth_application.rb

Instance Method Summary collapse

Instance Method Details

#redirect_uri_matches?(uri) ⇒ Boolean

Returns:

  • (Boolean)


20
# File 'app/models/toolchest/oauth_application.rb', line 20

def redirect_uri_matches?(uri) = redirect_uris.include?(uri)

#redirect_urisObject



18
# File 'app/models/toolchest/oauth_application.rb', line 18

def redirect_uris = redirect_uri&.split("\n")&.map(&:strip)&.reject(&:empty?) || []