新しい投稿

查找

ダイジェスト
· 2026年1月5日

Publicações Desenvolvedores InterSystems, Dezembro 29, 2025 - Janeiro 04, 2026, Resumo

Artigos
#InterSystems IRIS
Quando considerar o uso de useIrisFsGroup em suas implantações do IKO
Por Evandro Wendt
Aproveitando o Server Manager ao criar extensões do VS Code que se conectam a servidores InterSystems
Por Evandro Wendt
Arquivos temporários e singletons: limpem o que vocês gerarem.
Por Evandro Wendt
#DIM vs SET – ObjectScript
Por Evandro Wendt
Como encontrar um texto específico em ObjectScript
Por Evandro Wendt
API nativa para Demos ObjectScript
Por Evandro Wendt
Exportando dados de configuração de Interoperabilidade para CSV
Por Evandro Wendt
embeddedpy-bridge: Um kit de ferramentas para Embedded Python
Por Evandro Wendt
Construindo fluxos de integração de forma simples com o InterSystems IRIS
Por Evandro Wendt
Carregando dados em servidores (locais ou remotos) diretamente pelo VS Code.
Por Evandro Wendt
Exemplo ECP "Reloaded" – Implantação de várias instâncias do IRIS em arquitetura ECP
Por Evandro Wendt
EnsLib.SQL.Snapshot não é limpo durante a depuração de mensagens quando é usado na mensagem de resposta.
Por Evandro Wendt
Declarações/Estatísticas SQL desatualizadas (Ou: Por que eu tenho um enorme ^rINDEXSQL global?)
Por Evandro Wendt
Visualize as configurações do seu servidor InterSystems usando o Structurizr
Por Evandro Wendt
CCR: Bloqueio das transições markMoveToXXXXComplete e markCANCELComplete quando houver ItemSets não implantados
Por Evandro Wendt
Exibir os Itens de Configuração de Produção com Status
Por Evandro Wendt
Como comparar o conteúdo de duas globais
Por Evandro Wendt
#Outro
#Open Exchange
Perguntas
Dezembro 29, 2025 - Janeiro 04, 2026Week at a GlanceInterSystems Developer Community
ディスカッション (2)2
続けるにはログインするか新規登録を行ってください
ダイジェスト
· 2026年1月5日

InterSystems Developers Publications, Week December 29, 2025 - January 04, 2026, Digest

質問
· 2026年1月5日

IRIS Delegated Authentication Not Triggering ZAUTHENTICATE with Kong API Gateway

We are implementing delegated auth between Kong Gateway and IRIS. Kong is correctly configured to forward JWT authenticated requests with consumer headers (X-Consumer-Username, etc.) to IRIS, but the ZAUTHENTICATE routine (deployed in the %SYS namespace) never executes, leaving ZW ^ZAUTHLOG empty despite successful header delivery.

401 errors response:
...
* Request completely sent off
< HTTP/1.1 401 Unauthorized
< Content-Type: text/html; charset=utf-8
< Content-Length: 0
< Connection: keep-alive
< Date: Fri, 02 Jan 2026 16:03:48 GMT
< CACHE-CONTROL: no-cache
< EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
< PRAGMA: no-cache
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< Server: kong/3.11.0.3-enterprise-edition
< X-Kong-Upstream-Latency: 17
< X-Kong-Proxy-Latency: 1
< Via: 1.1 kong/3.11.0.3-enterprise-edition
< X-Kong-Request-Id: d1e1be43c3b00050672d105fb285c519

* Connection #0 to host kong.dev.azure.asmodee.com:443 left intact
 

ZAUTHENTICATE code:

ZAUTHENTICATE(ServiceName, Namespace, Username, Password, Credentials, Properties) PUBLIC {
    SET idx = $INCREMENT(^ZAUTHLOG)
    SET ^ZAUTHLOG(idx,"$H") = $H
    SET ^ZAUTHLOG(idx,"Service") = ServiceName
    SET ^ZAUTHLOG(idx,"Namespace") = Namespace
    SET kongConsumer = ""
    IF $ISOBJECT(%request) {
        SET kongConsumer = $GET(%request.CgiEnvs("HTTP_X_CONSUMER_USERNAME"))
    }
    SET ^ZAUTHLOG(idx,"Kong_Consumer_From_Header") = kongConsumer
    SET ^ZAUTHLOG(idx,"ServiceName_Received") = ServiceName
    IF kongConsumer="" {
        SET ^ZAUTHLOG(idx,"Result") = "REJECTED_NO_KONG_HEADER"
        QUIT $SYSTEM.Status.Error($$$InvalidUsernameOrPassword)
    }
    SET Username = "jarvis_proxy"
    SET ^ZAUTHLOG(idx,"IRIS_Username") = Username
    SET ^ZAUTHLOG(idx,"Result") = "AUTHENTICATED"
    SET Properties("Username") = Username
    QUIT $SYSTEM.Status.OK()
}
 

Troubleshooting Done:

  • AutheEnabled set to 8192 (Delegated, Bit 13 per Security.Applications documentation).
  • ZAUTHENTICATE routine compiled with Resource Required parameter.
  • Headers verified reaching IRIS (Web Gateway logs).
  • Kong request-transformer plugin is working correctly.
  • Manual testing shows routine executes, but delegated requests don't trigger it.
  • We also tested delegated authentication by calling IRIS directly (bypassing Kong) with pre-set headers; ZAUTHENTICATE still doesn't trigger. Unauthenticated and Password auth methods work well.



Does ZAUTHENTICATE require specific conditions to execute (session state, pre-auth check)? What am I missing ?
Thank you for any help !

5 Comments
ディスカッション (5)2
続けるにはログインするか新規登録を行ってください