Код: Выделить всё
public function login_sso()
{
if (!$this->session->userdata('USERNIP')) {
$oidc = new OpenIDConnectClient(
$this->config->item('SSO_PROVIDER_URL'),
$this->config->item('SSO_CLIENT_ID'),
$this->config->item('SSO_CLIENT_SECRET')
);
$isAuthenticate = $oidc->authenticate();
if ($isAuthenticate) {
$user = $this->M_welcome->get_login_complete_sso($oidc->requestUserInfo('preferred_username'));
[$akses, $akses_lengkap, $role_id] = $this->M_welcome->get_user_access($user[0]->PEGAWAIID, $oidc->requestUserInfo('preferred_username'), $user[0]->JENISPEGAWAIID);
$data_session = array(
'USERLOGIN' => $oidc->requestUserInfo('email'),
'SSO_ID_TOKEN' => $oidc->getIdToken()
);
$this->session->set_userdata($data_session);
redirect('user/profil/');
}
}
}
Код: Выделить всё
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
Код: Выделить всё
$config['base_url'] = 'https://mysite.go.id/';
Код: Выделить всё
This site can’t provide a secure connection mysite.go.id sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
Подробнее здесь: https://stackoverflow.com/questions/780 ... ocol-error