Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
omniauth-cas
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nounous-archives
omniauth-cas
Commits
8da806db
Commit
8da806db
authored
13 years ago
by
Derek Lindahl
Browse files
Options
Downloads
Plain Diff
Merge pull request #4 from dynaum/master
Configuring ssl certs path for ubuntu
parents
79a06b06
386194b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/omniauth/strategies/cas/service_ticket_validator.rb
+4
-1
4 additions, 1 deletion
lib/omniauth/strategies/cas/service_ticket_validator.rb
with
4 additions
and
1 deletion
lib/omniauth/strategies/cas/service_ticket_validator.rb
+
4
−
1
View file @
8da806db
...
@@ -78,7 +78,10 @@ module OmniAuth
...
@@ -78,7 +78,10 @@ module OmniAuth
result
=
''
result
=
''
http
=
Net
::
HTTP
.
new
(
@uri
.
host
,
@uri
.
port
)
http
=
Net
::
HTTP
.
new
(
@uri
.
host
,
@uri
.
port
)
http
.
use_ssl
=
@uri
.
port
==
443
||
@uri
.
instance_of?
(
URI
::
HTTPS
)
http
.
use_ssl
=
@uri
.
port
==
443
||
@uri
.
instance_of?
(
URI
::
HTTPS
)
http
.
verify_mode
=
OpenSSL
::
SSL
::
VERIFY_NONE
if
http
.
use_ssl?
&&
@options
.
disable_ssl_verification?
if
http
.
use_ssl?
http
.
verify_mode
=
OpenSSL
::
SSL
::
VERIFY_NONE
if
@options
.
disable_ssl_verification?
http
.
ca_path
=
'/etc/ssl/certs'
if
File
.
exists?
'/etc/ssl/certs'
# ruby19 ubuntu
end
http
.
start
do
|
c
|
http
.
start
do
|
c
|
response
=
c
.
get
"
#{
@uri
.
path
}
?
#{
@uri
.
query
}
"
,
VALIDATION_REQUEST_HEADERS
.
dup
response
=
c
.
get
"
#{
@uri
.
path
}
?
#{
@uri
.
query
}
"
,
VALIDATION_REQUEST_HEADERS
.
dup
result
=
response
.
body
result
=
response
.
body
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment