Class: Osso::GraphQL::Types::OauthClient
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Osso::GraphQL::Types::OauthClient
show all
- Defined in:
- lib/osso/graphql/types/oauth_client.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseObject
admin_authorized?, enterprise_authorized?, internal_authorized?
Class Method Details
.authorized?(_object, context) ⇒ Boolean
25
26
27
|
# File 'lib/osso/graphql/types/oauth_client.rb', line 25
def self.authorized?(_object, context)
admin_authorized?(context)
end
|
Instance Method Details
#client_id ⇒ Object
17
18
19
|
# File 'lib/osso/graphql/types/oauth_client.rb', line 17
def client_id
object.identifier
end
|
#client_secret ⇒ Object
21
22
23
|
# File 'lib/osso/graphql/types/oauth_client.rb', line 21
def client_secret
object.secret
end
|