fix (middleware): disable auth middleware

This commit is contained in:
Mickael Kerjean 2022-11-26 01:59:28 +11:00
parent 2fa1091985
commit 5c9c85ff2a
2 changed files with 7 additions and 7 deletions

View file

@ -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);

View file

@ -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 }}