You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by al...@apache.org on 2022/03/09 09:22:33 UTC
[incubator-linkis] 06/09: add ticket id log
This is an automated email from the ASF dual-hosted git repository.
alexkun pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
commit 4dc67db44a0d85a59fff8c5acf4248e6f35dcce9
Author: peacewong <wp...@gmail.com>
AuthorDate: Wed Mar 9 11:59:19 2022 +0800
add ticket id log
---
.../main/scala/org/apache/linkis/server/security/ProxyUserSSOUtils.scala | 1 +
1 file changed, 1 insertion(+)
diff --git a/linkis-commons/linkis-module/src/main/scala/org/apache/linkis/server/security/ProxyUserSSOUtils.scala b/linkis-commons/linkis-module/src/main/scala/org/apache/linkis/server/security/ProxyUserSSOUtils.scala
index 0f84f26..3046163 100644
--- a/linkis-commons/linkis-module/src/main/scala/org/apache/linkis/server/security/ProxyUserSSOUtils.scala
+++ b/linkis-commons/linkis-module/src/main/scala/org/apache/linkis/server/security/ProxyUserSSOUtils.scala
@@ -87,6 +87,7 @@ object ProxyUserSSOUtils extends Logging {
def getProxyUserUsername(req: HttpServletRequest): Option[String] = {
val ticketOption = Option(req.getCookies).flatMap(_.find(_.getName == PROXY_USER_TICKET_ID_STRING).map(_.getValue))
if (ticketOption.isDefined) {
+ logger.info(s"PROXY_USER_TICKET_ID_STRING: ${ticketOption.get}")
getProxyUsernameByTicket(ticketOption.get)
} else {
None
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org