diff --git a/client/pages/adminpage/backend.js b/client/pages/adminpage/backend.js index 4e2f1c52..08df4188 100644 --- a/client/pages/adminpage/backend.js +++ b/client/pages/adminpage/backend.js @@ -135,14 +135,14 @@ export class BackendPage extends React.Component { "identity_provider": (function() { const { type, ...other } = objectGet(middlewareData, ["identity_provider"]) || {}; return { - "type": type || null, + "type": type || "nop", "params": JSONStringify(other), }; })(), "attribute_mapping": (function() { let { related_backend = null, ...params } = objectGet(middlewareData, ["attribute_mapping"]) || {}; const obj = { - "related_backend": related_backend || "N/A" + "related_backend": related_backend || "nop" }; if(Object.keys(params).length > 0) { obj.params = JSONStringify(params); diff --git a/server/plugin/plg_authenticate_passthrough/index.go b/server/plugin/plg_authenticate_passthrough/index.go index 2dcdeedf..8a2c060f 100644 --- a/server/plugin/plg_authenticate_passthrough/index.go +++ b/server/plugin/plg_authenticate_passthrough/index.go @@ -21,11 +21,11 @@ func (this Admin) Setup() Form { Value: "passthrough", }, { - Name: "strategy", - Type: "select", - Default: "direct", - Opts: []string{"direct", "password_only", "username_and_password"}, - Id: "strategy", + Name: "strategy", + Type: "select", + Value: "direct", + Opts: []string{"direct", "password_only", "username_and_password"}, + Id: "strategy", Description: `This plugin has 3 base strategies: 1. The 'direct' strategy will redirect the user to your storage without asking for anything and use whatever is configured in the attribute mapping section. 2. The 'password_only' strategy will redirect the user to a page asking for a password which you can map to a field in the attribute mapping section like this: {{ .password }}