[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does #:with-auth support redirection?

From: Mortimer Cladwell
Subject: Does #:with-auth support redirection?
Date: Wed, 11 Aug 2021 10:46:53 -0400

I am running artanis on an AWS EC2 instance (NO Docker) with the following entries in artanis.conf: =
host.addr =

My login page is at   (Note: fake IP to protect the innocent)

I have a method for redirection that supplies a URI:

(define (get-redirect-uri dest)
   (string->uri (string-append "http://" (get-conf '(host name)) ":3000/" (string-trim dest #\/))))
 An example of successful use of redirection:
   (redirect-to rc (get-redirect-uri (string-append "plateset/getps?id="  prjid)))
 In general the redirection works fine except for #:with-auth, which requires a string (not URI) and #:with-auth simply appends to "host.addr" which is not correct for EC2 (and Docker I predict)
   #:with-auth #t redirects to
  Are there other options/strategies for redirection with #:with-auth?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]