Forum Discussion

kenwat's avatar
kenwat
Regular Visitor
3 years ago

java msal4j sdk to power bi

Need to access powerbi to generate pdf and get pdf.

in python, it is ok with following authentication:-

app = msal.ConfidentialClientApplication(client_id, authority=authority_url, client_credential=client_secret)
result = app.acquire_token_by_username_password(username=username,password=password,scopes=scope)

 

But client required in java, tried using msal4j sdk version 1.13.2

I tried to use ConfidentialClientApplication & PublicClientApplication, not sucess, any example I can follow?

 

No RepliesBe the first to reply