mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (middleware): disable auth middleware
This commit is contained in:
parent
2fa1091985
commit
5c9c85ff2a
2 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ func (this Admin) Setup() Form {
|
|||
{
|
||||
Name: "strategy",
|
||||
Type: "select",
|
||||
Default: "direct",
|
||||
Value: "direct",
|
||||
Opts: []string{"direct", "password_only", "username_and_password"},
|
||||
Id: "strategy",
|
||||
Description: `This plugin has 3 base strategies:
|
||||
|
|
|
|||
Loading…
Reference in a new issue