Fork me on GitHub
#yada
<
2017-08-17
>
raymcdermott19:08:29

hmmm I have the route working and looking up the public key from the discovery docs but thinking most of this should go in buddy rather than yada

malcolmsparks19:08:04

Well, I am happy to take it into yada via an ext. Then can get Andrey to consider promoting

malcolmsparks19:08:43

Need to look into auth0

malcolmsparks19:08:57

What do you think of it?

raymcdermott21:08:32

just started down the road but looks very well done so far, great - actually amazing docs

raymcdermott21:08:24

they have docs which (I assume) are generated on the fly to fill in examples with your customer data

raymcdermott21:08:43

and of course the Slate stuff for tests

raymcdermott21:08:04

so yes, very modern and impressive from an onboarding viewpoint

raymcdermott21:08:38

Java wise they like Spring security which means that they aren’t too easy to follow

raymcdermott21:08:28

btw this little bit of code was the most painful … not to write but to discover that I had to write it….

raymcdermott21:08:08

I found its equivalent in the back of some node.js lib

raymcdermott21:08:48

Incidentally the string chopping is done a lot nicer in JS

raymcdermott21:08:52

I could not get that regex working in Java / Clojure

delitescere02:08:46

(string/join "\n" (re-seq #".{1,64}" x5c-string))

raymcdermott06:08:01

not really a huge concern but it’s also tons faster

delitescere04:08:18

Indeed. Slightly more “intentional” too, as long as one understands the regex.

raymcdermott09:08:37

that’s regexes for ya

raymcdermott21:08:32

I’ve opened an issue on buddy-sign to see if he wants the code

raymcdermott21:08:19

but I’ll try to put it in the Yada oauth2 ext for the moment and we’ll see how it goes further