#1 2025-09-24 09:17:31

testgary
Member
Registered: 2025-02-06
Posts: 37

TAuthGroup

// I don't know whether it's a mistake on my part or something else. Here, "HOST" can only be in uppercase; lowercase doesn't yield any data.
Host := Ctxt.Call^.Header('HOST:')

Also, are there any examples of TAuthGroup + TAuthUser + MongoDB

Offline

#2 2025-09-24 10:21:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,240
Website

Re: TAuthGroup

It is documented as such.
This is part of the optimization of header names lookup.

Offline

#3 2025-09-24 10:33:36

testgary
Member
Registered: 2025-02-06
Posts: 37

Re: TAuthGroup

ab wrote:

It is documented as such.
This is part of the optimization of header names lookup.


This is truly perplexing and very prone to causing mistakes.

Could we make a change so that friends who come later won't waste time checking for mistakes at this place?

Offline

#4 2025-09-24 10:52:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,240
Website

Re: TAuthGroup

You just called the wrong method.
You used the low level method from Ctxt.Call^.

The method to use is Ctxt.InHeader['host'] and here you don't need to write anything in upper case.

Offline

#5 Yesterday 10:55:13

koraycayiroglu
Member
Registered: 2017-02-03
Posts: 76

Re: TAuthGroup

testgary wrote:

Also, are there any examples of TAuthGroup + TAuthUser + MongoDB

What are you looking for exactly?

Offline

Board footer

Powered by FluxBB