Add comments to config
This commit is contained in:
parent
501edd6d23
commit
374e4e27f5
|
@ -1,15 +1,36 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// DO NOT EDIT - Default values. Overrides should be placed in main config/addon.config.php file
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'proxyauth' => array(
|
'proxyauth' => array(
|
||||||
|
// (bool) To replace the login form with a single button
|
||||||
'replace_form' => false,
|
'replace_form' => false,
|
||||||
|
|
||||||
|
// (string) Text for single signon button
|
||||||
'button_text' => 'Login with SSO',
|
'button_text' => 'Login with SSO',
|
||||||
|
|
||||||
|
// (bool) To set remember me
|
||||||
'remember' => true,
|
'remember' => true,
|
||||||
|
|
||||||
|
// (string) Domain of SSO portal
|
||||||
|
// May be needed to prevent redirect loop on logout
|
||||||
'sso_domain' => '',
|
'sso_domain' => '',
|
||||||
|
|
||||||
|
// (string) URL to redirect to after logout
|
||||||
|
// will use an internal redirect to /logout_ssoif not set
|
||||||
'logout_url' => '',
|
'logout_url' => '',
|
||||||
|
|
||||||
|
// (bool) To automatically create a new account
|
||||||
'create_account' => true,
|
'create_account' => true,
|
||||||
|
|
||||||
|
// (string) Index of $_SERVER containing the username - REQUIRED
|
||||||
'username_header' => 'REMOTE_USER',
|
'username_header' => 'REMOTE_USER',
|
||||||
|
|
||||||
|
// (string) Index of $_SERVER containing the user's email address
|
||||||
'email_header' => '',
|
'email_header' => '',
|
||||||
|
|
||||||
|
// (string) Index of $_SERVER containing the user's fullname
|
||||||
'fullname_header' => ''
|
'fullname_header' => ''
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -113,7 +113,9 @@ function proxyauth_auth(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function proxyauth_create_user( $uid, $mail, $name ){
|
function proxyauth_create_user( $uid, $mail, $name ){
|
||||||
$pass = hash( 'sha512', random_( 256 ) );
|
// Generate random password
|
||||||
|
$pass = hash( 'sha512', random_bytes( 256 ) );
|
||||||
|
|
||||||
User::create( array(
|
User::create( array(
|
||||||
'username' => $name,
|
'username' => $name,
|
||||||
'nickname' => $uid,
|
'nickname' => $uid,
|
||||||
|
|
Loading…
Reference in a new issue