Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/crossdomain/plugin/model/plugin_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ func (mf *PluginManifest) Validate(skipAuthPayload bool) (err error) {
return errorx.New(errno.ErrPluginInvalidManifest, errorx.KVf(errno.PluginMsgKey,
"invalid api type '%s'", mf.API.Type))
}
if mf.Auth == nil {
return errorx.New(errno.ErrPluginInvalidManifest, errorx.KV(errno.PluginMsgKey,
"auth is required"))
}
// auth.type=none,return nil
if mf.Auth.Type == consts.AuthzTypeOfNone {
return nil
Expand Down