mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 18:23:42 +00:00
Fix wrong indentation! D:
This commit is contained in:
parent
1ba2e5c9c9
commit
026767d07e
1 changed files with 22 additions and 22 deletions
|
@ -218,7 +218,7 @@ function saml_input($key, $label, $description)
|
||||||
$label,
|
$label,
|
||||||
DI::config()->get('saml', $key),
|
DI::config()->get('saml', $key),
|
||||||
$description,
|
$description,
|
||||||
true, // all the fields are required
|
true, // all the fields are required
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -318,7 +318,7 @@ function saml_create_user($username, $email, $name)
|
||||||
'nickname' => $username,
|
'nickname' => $username,
|
||||||
'email' => $email,
|
'email' => $email,
|
||||||
'password' => base64_encode($bytes), // should be at least PW_LEN long
|
'password' => base64_encode($bytes), // should be at least PW_LEN long
|
||||||
'verified' => true
|
'verified' => true
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $user;
|
return $user;
|
||||||
|
@ -379,8 +379,8 @@ function saml_settings()
|
||||||
'serviceDescription' => 'SLO and SSO support for Friendica',
|
'serviceDescription' => 'SLO and SSO support for Friendica',
|
||||||
'requestedAttributes' => array(
|
'requestedAttributes' => array(
|
||||||
array(
|
array(
|
||||||
'uid' => '',
|
'uid' => '',
|
||||||
'isRequired' => false,
|
'isRequired' => false,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -429,27 +429,27 @@ function saml_settings()
|
||||||
// message. OneLogin Toolkit supports the HTTP-Redirect binding
|
// message. OneLogin Toolkit supports the HTTP-Redirect binding
|
||||||
// only for this endpoint.
|
// only for this endpoint.
|
||||||
'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
|
'binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
|
||||||
),
|
),
|
||||||
// Public x509 certificate of the IdP
|
// Public x509 certificate of the IdP
|
||||||
'x509cert' => DI::config()->get('saml', 'idp_cert'),
|
'x509cert' => DI::config()->get('saml', 'idp_cert'),
|
||||||
),
|
),
|
||||||
'security' => array (
|
'security' => array (
|
||||||
'wantXMLValidation' => false,
|
'wantXMLValidation' => false,
|
||||||
|
|
||||||
// Indicates whether the <samlp:AuthnRequest> messages sent by this SP
|
// Indicates whether the <samlp:AuthnRequest> messages sent by this SP
|
||||||
// will be signed. [Metadata of the SP will offer this info]
|
// will be signed. [Metadata of the SP will offer this info]
|
||||||
'authnRequestsSigned' => true,
|
'authnRequestsSigned' => true,
|
||||||
|
|
||||||
// Indicates whether the <samlp:logoutRequest> messages sent by this SP
|
// Indicates whether the <samlp:logoutRequest> messages sent by this SP
|
||||||
// will be signed.
|
// will be signed.
|
||||||
'logoutRequestSigned' => true,
|
'logoutRequestSigned' => true,
|
||||||
|
|
||||||
// Indicates whether the <samlp:logoutResponse> messages sent by this SP
|
// Indicates whether the <samlp:logoutResponse> messages sent by this SP
|
||||||
// will be signed.
|
// will be signed.
|
||||||
'logoutResponseSigned' => true,
|
'logoutResponseSigned' => true,
|
||||||
|
|
||||||
// Sign the Metadata
|
// Sign the Metadata
|
||||||
'signMetadata' => true,
|
'signMetadata' => true,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue