Use Friend for authentication and authorisation in a single page Clojure web application

前端 未结 2 437
独厮守ぢ
独厮守ぢ 2021-02-06 01:47

I am trying to integrate Friend authentication and authorisation into a Clojure/Compojure single-page web application.

I have a login form backed by an Angular controlle

2条回答
  •  自闭症患者
    2021-02-06 02:43

    You need to have :redirect-on-auth? as false and you need to wrap your response in a response map {:status 200 :body (workflows/make-auth...)}. Note that you probably need to serialize your body to a String or something else that can be handled.

提交回复
热议问题