Class: Mcp::Auth::OauthClient
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Mcp::Auth::OauthClient
- Defined in:
- app/models/mcp/auth/oauth_client.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.find_by_client_id(client_id) ⇒ Object
38 39 40 |
# File 'app/models/mcp/auth/oauth_client.rb', line 38 def self.find_by_client_id(client_id) find_by(client_id: client_id) end |
Instance Method Details
#supports_grant_type?(grant_type) ⇒ Boolean
46 47 48 |
# File 'app/models/mcp/auth/oauth_client.rb', line 46 def supports_grant_type?(grant_type) grant_types&.include?(grant_type) end |
#valid_redirect_uri?(uri) ⇒ Boolean
42 43 44 |
# File 'app/models/mcp/auth/oauth_client.rb', line 42 def valid_redirect_uri?(uri) redirect_uris&.include?(uri) end |