lastobelus-rubycas-client 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/casclient/rest_client.rb +3 -3
- data/lib/casclient/version.rb +1 -1
- metadata +1 -1
@@ -24,16 +24,16 @@ module CASClient
|
|
24
24
|
return nil
|
25
25
|
when Net::HTTPBadRequest then
|
26
26
|
log.error("RestClient.get_ticket_granting_ticket_resource: CAS server returned BadRequest")
|
27
|
-
raise BadRequestException,
|
27
|
+
raise BadRequestException, resp.body
|
28
28
|
else
|
29
29
|
log.warn "RestClient.get_ticket_granting_ticket_resource: an unexpected error occurred #{resp}"
|
30
|
-
raise CASException,
|
30
|
+
raise CASException, resp.inspect
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
def ticket_id_from_resource_url(*ticket_resource)
|
35
35
|
ticket_resource = ticket_resource.flatten.to_s
|
36
|
-
match = ticket_resource.match(/(TGT
|
36
|
+
match = ticket_resource.match(/(TGT-\d+-.+-.+)/)
|
37
37
|
raise Exception, "could not extract ticket id from #{ticket_resource}" unless match
|
38
38
|
return match[1]
|
39
39
|
end
|
data/lib/casclient/version.rb
CHANGED