clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
dharrigan 2021-01-07T07:45:30.383200Z

Good Morning!

djm 2021-01-07T08:07:26.383400Z

👋

plexus 2021-01-07T08:18:58.383800Z

morning!

ordnungswidrig 2021-01-07T08:28:34.384100Z

Good morning!

ordnungswidrig 2021-01-07T08:29:13.384900Z

I hope everybody coud take the holiday time to get a deep breath and is pumped for a hopefully less strange 2021! 🎆

borkdude 2021-01-07T08:37:57.385100Z

morning!

simongray 2021-01-07T08:42:50.385300Z

morning

simongray 2021-01-07T08:43:32.386100Z

@ordnungswidrig I take you didn’t stay up late watching the news on American TV? 😛

ordnungswidrig 2021-01-07T08:44:22.386600Z

@simongray not at all. I will come how it comes. 😉

ordnungswidrig 2021-01-07T08:46:11.387400Z

oh, fancy things hapened?

simongray 2021-01-07T08:46:25.387700Z

you really have been isolated

simongray 2021-01-07T08:47:02.388100Z

good job 🙂

simongray 2021-01-07T08:49:45.390Z

probably very healthy. In my flat, we were watching the live news coverage on CBS till late with lots of popcorn and pepsi.

😂 1
thomas 2021-01-07T08:57:22.390200Z

morning

pez 2021-01-07T09:00:55.390900Z

Seems the vast bulk of the revolution participated via Zoom? 😃

2021-01-07T09:11:36.391300Z

morning

2021-01-07T09:15:58.393Z

absolutely gobsmacking how • how heavy-handedly policed the BLM protests of the summer were • how non-existent the policing of the white supremacist coup attempt was I mean I knew USA was was that way inclined, but this is jaw-dropping

2021-01-07T09:17:05.393100Z

as usual, The Onion put it better https://twitter.com/TheOnion/status/1346925781864357888

👏 1
☝️ 1
thomas 2021-01-07T10:07:38.393800Z

I'd rather live in less interesting times...

2021-01-07T10:42:59.394700Z

ha! the 21st century was supposed to be less interesting times Remember > The end of history from the millienium celebrations

2021-01-07T10:44:52.394800Z

> There was a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal ... that things in general were settled for ever.”

orestis 2021-01-07T13:58:11.395700Z

Good morning! I’m here to pepper the USA weirdness with some Java weirdness, if any kind soul can point me to the right direction…

orestis 2021-01-07T13:58:13.395900Z

IClientCredential credential = ClientCredentialFactory.createFromSecret(CLIENT_SECRET);
ConfidentialClientApplication app = 
    ConfidentialClientApplication
        .builder(PUBLIC_CLIENT_ID, credential)
        .authority(AUTHORITY)
        .build();
I have translated this to
(let [credential (ClientCredentialFactory/createFromSecret secret-value)
      builder ^ConfidentialClientApplication$Builder
      (ConfidentialClientApplication/builder client-id credential)]
  (->
    builder
    (.authority authority)
    (.build)))
But I’m getting this exception:
; (err) Execution error (IllegalArgumentException) at nosco.azure/eval85548 (REPL:35).
; (err) No matching method authority found taking 1 args for class com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder

orestis 2021-01-07T13:59:08.396300Z

The javadoc is https://javadoc.io/static/com.microsoft.azure/msal4j/1.8.1/com/microsoft/aad/msal4j/ConfidentialClientApplication.Builder.html#authority-java.lang.String- and I’m sure I have the correct version of the library…

borkdude 2021-01-07T14:07:35.396700Z

Maybe you are using the wrong version?

pez 2021-01-07T14:07:36.396800Z

Which line is line 35 in the file?

pez 2021-01-07T14:08:44.397100Z

I lolled:

borkdude 2021-01-07T14:09:09.397500Z

haha lol

borkdude 2021-01-07T14:10:27.397700Z

@orestis You can try and do some reflection, listing the available methods on the object you're calling

borkdude 2021-01-07T14:10:49.397900Z

And to be really sure 😉 you're using the right version, do (io/resource "org/foo/bar/TheClass.class") and see what it comes up with

borkdude 2021-01-07T14:11:03.398100Z

or check the classpath

orestis 2021-01-07T14:12:49.398400Z

#object[http://java.net.URL 0x4aa2eb09 “jar:file:/Users/orestis/.m2/repository/com/microsoft/azure/msal4j/1.8.1/msal4j-1.8.1.jar!/com/microsoft/aad/msal4j/ConfidentialClientApplication.class”]

orestis 2021-01-07T14:13:10.398900Z

There seems to be something wrong with this library 😞

orestis 2021-01-07T14:14:21.399200Z

Here’s the :members of that builder class:

{:name
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types
    [java.lang.String
     com.microsoft.aad.msal4j.IClientCredential
     com.microsoft.aad.msal4j.ConfidentialClientApplication$1],
    :exception-types [],
    :flags #{:synthetic}}
   {:name build,
    :return-type
    com.microsoft.aad.msal4j.AbstractClientApplicationBase,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types [],
    :exception-types [],
    :flags #{:public :bridge :synthetic}}
   {:name access$000,
    :return-type boolean,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types
    [com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder],
    :exception-types [],
    :flags #{:static :synthetic}}
   {:name
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types
    [java.lang.String com.microsoft.aad.msal4j.IClientCredential],
    :exception-types [],
    :flags #{:private}}
   {:name build,
    :return-type
    com.microsoft.aad.msal4j.ConfidentialClientApplication,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types [],
    :exception-types [],
    :flags #{:public}}
   {:name clientCredential,
    :type com.microsoft.aad.msal4j.IClientCredential,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :flags #{:private}}
   {:name self,
    :return-type
    com.microsoft.aad.msal4j.AbstractClientApplicationBase$Builder,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types [],
    :exception-types [],
    :flags #{:bridge :protected :synthetic}}
   {:name sendX5c,
    :return-type
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types [boolean],
    :exception-types [],
    :flags #{:public}}
   {:name self,
    :return-type
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types [],
    :exception-types [],
    :flags #{:protected}}
   {:name access$100,
    :return-type com.microsoft.aad.msal4j.IClientCredential,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :parameter-types
    [com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder],
    :exception-types [],
    :flags #{:static :synthetic}}
   {:name sendX5c,
    :type boolean,
    :declaring-class
    com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder,
    :flags #{:private}}

orestis 2021-01-07T14:20:17.399500Z

Does the synthetic flag ring any bells?

orestis 2021-01-07T14:31:43.399700Z

I’ve moved the discussion to #java

orestis 2021-01-11T16:47:20.014200Z

I managed to work around the issue with some more direct reflection but Alex Miller suggested it might be a bug

pez 2021-01-07T14:33:26.400500Z

Let’s go back to the dismay over the assault on democracy thrown by some 10+ idiots yesterday. 😃

orestis 2021-01-07T14:39:04.402300Z

I’ve spent the weeks running up to the US elections, and until the final results, totally obsessed. I decided to put my head in the sand and wait for all this to blow over.

pez 2021-01-07T14:41:55.404600Z

I’ve just glanced at it now and then, happy for the entertainment, but I am obsessed with so many other things so I am out of fucks to give for that circus.

😂 1
ordnungswidrig 2021-01-07T21:49:22.405300Z

any outcome of that discussion? I’m just curious