Files
Yeuoly d13fb55f4f Refactor/oauth parameters (#247)
* feat: implement OAuth functionality in plugin daemon

- Added OAuth service methods for getting authorization URLs and credentials.
- Updated access types to include OAuth-related actions.
- Created new controller for handling OAuth requests.
- Introduced entities for OAuth results and requests.
- Enhanced plugin entities to support OAuth schema in tool declarations.

* feat: add OAuth endpoints for authorization and credentials retrieval

- Introduced new POST endpoints for obtaining authorization URLs and credentials in the OAuth controller.
- Enhanced the plugin dispatch group to include these new OAuth routes, improving integration with OAuth services.

* refactor: clean up OAuth entity and request structures

- Removed unused validation logic and constants from the OAuth entity file.
- Added required provider field to OAuth request structures for better validation and clarity.
2025-04-27 14:35:43 +08:00

10 lines
462 B
Go

package plugin_entities
type OAuthSchema struct {
// ClientSchema contains client_id, client_secret, redirect_uri, etc. which are required to be set by system admin
ClientSchema []ProviderConfig `json:"client_schema" yaml:"client_schema" validate:"omitempty,dive"`
// CredentialsSchema contains schema of access_token, refresh_token, etc.
CredentialsSchema []ProviderConfig `json:"credentials_schema" yaml:"credentials_schema" validate:"omitempty,dive"`
}