This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-22
Channels
- # aws (1)
- # beginners (102)
- # boot (5)
- # cljs-dev (59)
- # cljsjs (1)
- # clojure (154)
- # clojure-australia (1)
- # clojure-brasil (1)
- # clojure-dusseldorf (4)
- # clojure-greece (36)
- # clojure-italy (10)
- # clojure-poland (5)
- # clojure-romania (1)
- # clojure-russia (7)
- # clojure-spec (32)
- # clojure-uk (113)
- # clojure-ukraine (3)
- # clojurescript (107)
- # cursive (13)
- # data-science (25)
- # datomic (23)
- # emacs (3)
- # events (1)
- # fulcro (72)
- # funcool (10)
- # graphql (1)
- # leiningen (1)
- # luminus (2)
- # lumo (38)
- # off-topic (14)
- # onyx (78)
- # planck (4)
- # re-frame (55)
- # reagent (1)
- # ring (3)
- # ring-swagger (2)
- # rum (19)
- # shadow-cljs (89)
- # spacemacs (101)
- # sql (2)
- # unrepl (88)
Hi, I used luminus to write a small programm for a small team. I want people to authenticate using their google accounts. I am trying to use ring-oauth2
. The redirect to google and the redirect back work fine. But when ring-oauth2 gets called on the callback-uri with the Code in the url it throws "Missing required parameter: code". But the devtools show the parameter to be there. I put the error with stacktrace here: https://pastebin.com/wWeNMrFp. Can somebody tell me what that means. I can not tell where in the process it blows. Or does anyone know of some working code that authenticates ring, ideally luminus against google so I can learn where I am going wrong?
I have started a standalone test-project. Just ring as per the ring getting started guide and ring-oauth2. It seems to me that wrap-params does not recognise the parameters from the query-string. I instrumented wrap-oauth2 to pprint the request. It looks like this https://pastebin.com/J9Vinea0. The :query-string
is there but the :params
are not. If I feed this map to wrap-params it chockes and will not add the params to the list. When I delete the kv-pair :body #object[https...]
then wrap-params works fine. Please help.
Here is the source of the testing project. Bare ring and ring-oauth2 plus the printout of wrap-params choking. Maybe I ordered things wrong. Please help. https://pastebin.com/4LrdV4GJ.