This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-07
Channels
- # announcements (27)
- # babashka (29)
- # beginners (280)
- # calva (34)
- # cider (4)
- # circleci (11)
- # cljfx (10)
- # cljsrn (1)
- # clojure (526)
- # clojure-dev (9)
- # clojure-europe (42)
- # clojure-finland (5)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-taiwan (2)
- # clojure-uk (14)
- # clojurescript (40)
- # clr (43)
- # community-development (5)
- # css (4)
- # cursive (7)
- # duct (82)
- # events (1)
- # fulcro (72)
- # garden (44)
- # hoplon (3)
- # java (40)
- # jobs (4)
- # juxt (1)
- # luminus (53)
- # meander (13)
- # off-topic (26)
- # pathom (14)
- # pedestal (3)
- # portal (2)
- # rdf (3)
- # re-frame (54)
- # releases (10)
- # remote-jobs (3)
- # sci (74)
- # shadow-cljs (47)
- # startup-in-a-month (5)
- # testing (9)
- # tools-deps (73)
- # vim (12)
Good morning!
I hope everybody coud take the holiday time to get a deep breath and is pumped for a hopefully less strange 2021! š
@ordnungswidrig I take you didnāt stay up late watching the news on American TV? š
@simongray not at all. I will come how it comes. š
oh, fancy things hapened?
probably very healthy. In my flat, we were watching the live news coverage on CBS till late with lots of popcorn and pepsi.
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
as usual, The Onion put it better https://twitter.com/TheOnion/status/1346925781864357888
ha! the 21st century was supposed to be less interesting times Remember > The end of history from the millienium celebrations
> 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.ā
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ā¦
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
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ā¦
@U7PBP4UVA You can try and do some reflection, listing the available methods on the object you're calling
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
#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ā]
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}}
any outcome of that discussion? Iām just curious
https://ask.clojure.org/index.php/10029/possible-reflection-abstract-class-methods-being-visible
I managed to work around the issue with some more direct reflection but Alex Miller suggested it might be a bug
Letās go back to the dismay over the assault on democracy thrown by some 10+ idiots yesterday. š