juxt

jaihindhreddy 2020-04-14T15:42:52.016900Z

Is this channel about clojure.core/juxt or <http://juxt.pro|juxt.pro>, or both πŸ˜›?

2020-04-14T15:50:28.017600Z

And is this a good place to ask questions about Apex? πŸ™‚

πŸ‘ 1
jonpither 2020-04-14T16:39:01.018500Z

Go ahead @jeroenvandijk!

2020-04-14T16:39:36.019600Z

Ok cool πŸ™‚ I was wondering about the state of the openId code. It’s an approach I would like to use

jonpither 2020-04-14T16:39:36.019700Z

Hi @jaihindhreddy this channel for http://juxt.pro

πŸ‘ 1
2020-04-14T16:40:29.021100Z

I see a lot of open questions in this namespace https://github.com/juxt/apex/blob/master/modules/oauth2/src/juxt/apex/alpha/oauth2/oic.clj Is it still under heavy development / design?

jonpither 2020-04-14T16:40:37.021600Z

I pinged @malcolmsparks who can answer better than I @jeroenvandijk. Thanks for your Q

2020-04-14T16:40:45.021800Z

Thanks!

jarohen 2020-04-14T16:45:10.021900Z

although we'll also try to answer questions about clojure.core/juxt if you have them πŸ˜‰

hairfire 2020-04-14T17:02:49.022100Z

I have encountered a 'strange interaction' using the 'capsule' method of creating an upberjar as described in the Edge documentation. The screenshot shows the issue: Following the Edge documentation I cloned Edge to begin, then used 'bin/app' to create two apps, 'my.one' and 'my.two'. Following this I did the following: 1. Left, first show Java version being executed 2. Left, next create 'my.one' uberjar 3. Left, execute 'my.one' uberjar, and make sure it works, which it does 4. Left, kill 'my.one' with CTRL-C 5. Right, first show Java version being executed 6. Right, next create 'my.two' uberjar 7. Right, execute 'my.two' uberjar, and make sure it works, which it does 8. Right, kill 'my.two' with CTRL-C 8. Left, execute 'my.one' uberjar again, and make sure it works, *IT FAILS* 9. Left, execute 'my.one' uberjar again, and send stderr and stdout to files for analysis 10. Left, kill 'my.one' 11. Analyze stdout capture file finding an exception. 12. Left, rebuild 'my.one' 13. Left, execute 'my.one' uberjar, and make sure it works, which it does 14. Right, execute 'my.two' again, and make sure it works, *IT FAILS* 15. Analyze stdout capture file finding an exception. Thoughts?

jaihindhreddy 2020-04-14T18:31:23.022400Z

Ha! Thought so πŸ˜„. Thanks. Edit: Adding a channel topic might help.

dominicm 2020-04-14T19:06:08.023300Z

Given the steps, you probably need to specify an application id

malcolmsparks 2020-04-14T19:11:52.024500Z

Around 19:15 I discuss that code @jeroenvandijk

malcolmsparks 2020-04-14T19:12:38.025800Z

It's under development, but good enough to demo. It's more complete than anything similar I know of.

malcolmsparks 2020-04-14T19:15:01.026700Z

Thanks @dominicm

2020-04-14T19:22:32.026800Z

@malcolmsparks Thank you. I’ll have a look and provide feedback if that is helpful

malcolmsparks 2020-04-14T19:25:07.027Z

Yes, still under development. In brief, I'm currently working on finishing off https://github.com/juxt/reap because I need it for so many places in Apex, to do the job properly. On the OpenID-Connect front, there's some extra work in checking all the things they need to be asserted before it's ready for a proper security review/audit, but the code does work from a demo perspective, the JWTs are verified properly and it's all mostly there. I'll circle back soon for another go at finishing it along with the other Apex Ring middleware pieces on the roadmap. Hope that helps.

malcolmsparks 2020-04-14T19:25:34.027300Z

Yes please!

hairfire 2020-04-14T21:23:38.030200Z

Yes. The cache was being overwritten. Doing something like this fixed it: ../bin/capsule \ --application-id 'my.one' \ --application-version '1.0.0' \ --main 'edge.main' \ --extra-path 'target/prod' \ -A:prod project.jar It also appears that executing the resulting JAR file something like this: CAPSULE_CACHE_DIR='/tmp' java -jar project.jar will create the cache in /tmp, and delete it automatically after execution. Of course you loose whatever start performance is gained by the cache. Thanks all!

πŸ‘ 1