Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sipenkp_v2
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
reynaldi adriantama
sipenkp_v2
Commits
e419cc12
Commit
e419cc12
authored
Jun 26, 2024
by
Reynaldi Addriantama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable cas
parent
be45ee8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
module/Application/src/Controller/UserController.php
module/Application/src/Controller/UserController.php
+11
-11
No files found.
module/Application/src/Controller/UserController.php
View file @
e419cc12
...
...
@@ -849,19 +849,19 @@ class UserController extends \Application\Master\GlobalActionController
$session
->
stop
();
$this
->
cas
=
new
\phpCAS
();
$this
->
cas_server_url
=
"https://login.itb.ac.id/cas"
;
$defaults
=
array
(
'path'
=>
''
,
'port'
=>
443
);
$cas_url
=
array_merge
(
$defaults
,
parse_url
(
$this
->
cas_server_url
));
$this
->
cas
::
client
(
CAS_VERSION_2_0
,
$cas_url
[
'host'
],
$cas_url
[
'port'
],
$cas_url
[
'path'
],
false
);
$this
->
cas
::
setNoCasServerValidation
();
$this
->
cas
->
forceAuthentication
();
$this
->
cas
->
logout
();
//
$this->cas = new \phpCAS();
//
$this->cas_server_url = "https://login.itb.ac.id/cas";
//
$defaults = array('path' => '', 'port' => 443);
//
$cas_url = array_merge($defaults, parse_url($this->cas_server_url));
//
$this->cas::client(CAS_VERSION_2_0,
//
$cas_url['host'],
//
$cas_url['port'],
//
$cas_url['path'],false);
//
$this->cas::setNoCasServerValidation();
//
$this->cas->forceAuthentication();
//
$this->cas->logout();
return
$this
->
redirect
()
->
toRoute
(
'login'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment