mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-25 05:25:41 -04:00
d80630acd5
* 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.
10 lines
310 B
Go
10 lines
310 B
Go
package plugin_entities
|
|
|
|
type DatasourceDeclaration struct {
|
|
// Identity etc.
|
|
// TDB
|
|
|
|
CredentialsSchema []ProviderConfig `json:"credentials_schema" yaml:"credentials_schema" validate:"omitempty,dive"`
|
|
OAuthSchema *OAuthSchema `json:"oauth_schema" yaml:"oauth_schema" validate:"omitempty,dive"`
|
|
}
|