每次服务器收到 HTTP 请求时,都会调用 OnOAuth2IsPrivateEndpoint 事件,询问该端点是否为私有端点。默认情况下不是私有端点。
procedure OnOAuth2IsPrivateEndpoint(Sender: TObject; const aEndpoint: string; var IsPrivate: Boolean); begin if aEndpoint = '/private' then IsPrivate := True; end;