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
37 38 39 |
# File 'app/models/mcp/auth/oauth_client.rb', line 37 def self.find_by_client_id(client_id) find_by(client_id: client_id) end |
Instance Method Details
#supports_grant_type?(grant_type) ⇒ Boolean
45 46 47 |
# File 'app/models/mcp/auth/oauth_client.rb', line 45 def supports_grant_type?(grant_type) grant_types&.include?(grant_type) end |
#valid_redirect_uri?(uri) ⇒ Boolean
41 42 43 |
# File 'app/models/mcp/auth/oauth_client.rb', line 41 def valid_redirect_uri?(uri) redirect_uris&.include?(uri) end |