ring

magra 2017-11-22T15:38:07.000307Z

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?

magra 2017-11-22T21:44:21.000141Z

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.

magra 2017-11-22T22:04:00.000142Z

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.