artanis
[Top][All Lists]
Advanced

[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

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

host.name = 3.13.182.53
host.addr = 0.0.0.0

My login page is at http://3.13.182.53:3000/login   (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 http://0.0.0.0:3000/login
   
  Are there other options/strategies for redirection with #:with-auth?
  Thanks
  Mortimer

reply via email to

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