Fork me on GitHub
#clojure-europe
<
2021-01-08
>
djm07:01:50

đź‘‹

synthomat08:01:42

Good morning!

plexus08:01:48

good morning!

borkdude10:01:28

Fun babashka script to print API breakage warnings: https://gist.github.com/borkdude/ba372c8cee311e31020b04063d88e1be

❤️ 12
pez11:01:52

That is pure beauty, @borkdude.

orestis14:01:35

Morning. I spent the whole day learning about Azure Active Directory, SAML and SCIM provisioning. The corporate world is so complex at times, but if you have 10000 employees to manage I guess it’s a hard problem to solve.

slipset14:01:29

@orestis I really want to get going on SCIM, it looks like it would solve some use cases for us.

slipset14:01:50

SAML, in my experience has been quite ok to work with.

slipset14:01:05

If I were to do our saml stuff now, I would very much considered using one of the java libs, like the stuff from one-login or whatever4j, eh pac4j

simongray15:01:18

I looked into SAML recently too and ended up making a mini-library for Pedestal to spawn SAML-authenticed web services. It just uses the metabase saml20-clj lib (which uses whatever library shibboleth-sp uses). I initially looked at Shibboleth-sp, but my brain starts taking an unplanned vacation whenever I start reading the documentation of a big Java project. Also, personally, whenever I have to start making lots of XML files and replicate certain folder structures to get basic functionality, I feel like I’m erasing important connections that would otherwise exist in my code. I tried integrating my prototypical SAML service with a Danish IdP just before Christmas and everything worked great! Hadn’t heard about SCIM - will need to check it out. My SAML studies did make me aware of OpenID connect which is apparently some standard that is equivalent to SAML, but more recent and more friendly towards API login flows or something.

orestis15:01:44

I’ve used the metabase saml library for a proof of concept. I will need to do a full review and perhaps an internal security review first though. The moment we pull the trigger on re-doing our SSO work we’ll probably do a more thorough review of things like pac4j too — but I share @simongray’s vacation brain when I’m looking at big Java projects.

orestis15:01:33

SCIM is not equivalent to SAML; it’s a protocol for a directory to synchronise users and groups to another. For example Active Directory would periodically call various rest-like HTTP endpoints on our server to add/update/remove users and groups.

đź‘Ť 3
orestis15:01:39

@slipset there’s a clojure library that implements the SCIM patch semantics. I only care to implement Azure AD compatibility for now so I might release a tiny library that just cares for that, probably a set of ring handlers or perhaps even lower level.

slipset15:01:10

ohhhh, that would be very interesting.

slipset15:01:15

@orestis we’re using the metabase saml lib, which is a lot better in v2 than in v1 (or whatever the previous was)

simongray15:01:36

Also using v2 here.

orestis15:01:33

Yeah clj-saml v2 seems small enough to actually read through entirely. The heavy lifting is done via some java lib anyway.

slipset15:01:34

FYI, I added a PR to onelogins java SAML stuff, so it should in theory be possible to use that relatively simply from JAVA.

slipset15:01:16

I haven’t followed clj-saml closely the last couple of months, but there are still some “problems” with it.

slipset15:01:32

Not that serious, but still things that should be fixed for it to be rock solid.

orestis15:01:15

We should put some TLC on those libraries.

orestis15:01:38

We’re committed to do SCIM in first half of 2021 so probably someone from Nosco is going to be working in that space.

slipset15:01:14

Cam was very responsive and quick when I first approached him with the problems in the version 1, then it seems as if he got other priorities.

slipset15:01:31

he basically rewrote the lib over a weekend.

simongray15:01:55

Looking at his github profile, seems like he’s doing all of the Clojure development at the company…

slipset15:01:13

Not really, there are others, like Simon Belak, and some others.

simongray15:01:46

Still, seems like he’s got his hands full 🙂

slipset15:01:55

That I believe.

slipset15:01:08

Anyways, dinner time, have a great weekend!

orestis15:01:37

Same here. God weekend!

simongray15:01:37

God weekend 🙂

thomas20:01:00

good night...