This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-28
Channels
- # ai (1)
- # beginners (239)
- # bitcoin (1)
- # boot (4)
- # cider (5)
- # clara (3)
- # cljs-dev (16)
- # cljsjs (5)
- # cljsrn (1)
- # clojure (152)
- # clojure-android (3)
- # clojure-dev (3)
- # clojure-greece (4)
- # clojure-italy (5)
- # clojure-spec (14)
- # clojure-uk (24)
- # clojurescript (81)
- # data-science (1)
- # datomic (47)
- # devcards (34)
- # docs (3)
- # emacs (6)
- # ethereum (1)
- # events (9)
- # flambo (5)
- # fulcro (11)
- # graphql (1)
- # immutant (3)
- # lein-figwheel (2)
- # leiningen (2)
- # luminus (6)
- # lumo (90)
- # off-topic (25)
- # proton (2)
- # re-frame (44)
- # reagent (5)
- # ring (7)
- # ring-swagger (11)
- # shadow-cljs (11)
- # spacemacs (6)
- # vim (13)
- # yada (25)
okay I am totally lost. I have from Google
clientId:""
code:"yyy"
redirectUri:""
state:"zzzz"
what do I do with it now?yeah the documents are a bit sparse in that area 😞
A little bit of reading the source, you set the authentication scheme to oauth, and the options are specified in that function (kinda)
yeah, I'm really feeling this is much simpler than I am making it out to be. I'm sure I am over thinking it.
["/auth/google" (yada/as-resource oauth/oauth2-callback-resource-google)]
?
["/auth/google" (oauth/oauth2-callback-resource-google :response)]
?
It needs these options in a map: :access-token-url s/Str :client-id s/Str :client-secret s/Str :secret s/Str :redirect-uri s/Keyword ;; The function that will ultimately call the third-party API for user-details. ;; First argument is the access-token :handler (s/=> {s/Any s/Any} {:access-token s/Str :openid-claims {s/Str s/Str}})
I'm trying to get header parameters to work with yada. One thing is that they seem to be case insensitive. The other is that if I declare a header parameter such as
{:parameters {:header {:foo String}}}
Then no matter if I provide foo or not I get various error messages saying that it is missing. Perhaps I'm doing something wrong. This makes no difference either.
{:parameters {:header {"foo" String}}}
the error is a variation of
{:status 400,
:errors ([:header {:error {:foo missing-required-key}}])}
and
More than one non-optional/required key schemata: ["foo" java.lang.String]
@macroz this caught me too
what you need is
{:header {(schema/required-key "x-orig-url") String}}
@danielcompton thanks a million!
np, happy to help
I’m trying out our yada app on clojure 1.9.0-beta1. I get an exception on aleph/http/multipart.clj line 30
@borkdude thanks for reporting