Class: Osso::GraphQL::Types::RedirectUri

Inherits:
BaseObject
  • Object
show all
Defined in:
lib/osso/graphql/types/redirect_uri.rb

Class Method Summary collapse

Methods inherited from BaseObject

admin_authorized?, enterprise_authorized?, internal_authorized?

Class Method Details

.authorized?(_object, context) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/osso/graphql/types/redirect_uri.rb', line 15

def self.authorized?(_object, context)
  context[:scope] == 'admin'
end