Merge pull request #10599 from dataease/pr@dev-v2@perf_apisix_cas

perf(X-Pack): CAS配置
This commit is contained in:
fit2cloud-chenyw 2024-06-28 14:57:33 +08:00 committed by GitHub
commit f051a16533
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
--
--
---- Licensed to the Apache Software Foundation (ASF) under one or more
---- contributor license agreements. See the NOTICE file distributed with
---- this work for additional information regarding copyright ownership.
@ -118,7 +118,7 @@ local function validate(conf, ctx, ticket)
local httpc = http.new()
local res, err = httpc:request_uri(conf.idp_uri ..
"/serviceValidate",
{ query = { ticket = ticket, service = uri_without_ticket(conf, ctx) }, ssl_verify = false })
{ query = { ticket = ticket, service = uri_without_ticket(conf, ctx) } ,ssl_verify = false})
if res and res.status == ngx.HTTP_OK and res.body ~= nil then
if core.string.find(res.body, "<cas:authenticationSuccess>") then