Azure Active Directory Authentication Library for Java (adal4j)
Questions tagged [adal4j]
62 questions
0
votes
2 answers
Getting 400 Bad request when sending POST request to Azure Graph API
I am trying to send POST request to Microsoft Azure Graph API for User creation.
I have referred their sample example and able to execute GET request successfully but not POST.
My code is as below:
import java.io.BufferedReader;
import…

Amit Gawali
- 270
- 2
- 4
- 18
0
votes
1 answer
Microsoft Graph API , using ADAL4J
I'm trying to create a simple app that allows me to list and edit user accounts on Azure Active Directory.
These users were added to the directory through Azure AD B2C.
I followed some samples and after a few hours of research i've come up with a…

pedrorocha.org
- 115
- 6
0
votes
2 answers
adal4j Auth issue
Hi i wrote a deamon app that uses Microsoft active directory, the app works fine in development environment but in production (AWS EC2 instance) i get this error :
java.lang.Exception: Server returned error in RSTR - ErrorCode: FailedAuthentication…

FrenchTechLead
- 1,118
- 3
- 13
- 20
0
votes
1 answer
When to use acquireTokenByRefreshToken vs. acquireToken
When and why would I use the "refresh" forms of the AuthenticationContext acquireToken methods, vs. just calling the initial forms with the same credentials again?

dbreaux
- 4,982
- 1
- 25
- 64
0
votes
1 answer
How to make Azure AD autorization flow from SPA to Spring Boot Rest service
We have a SPA that is protected with Azure AD. This seems to work fine, and users can authenticate ok.
We also have a spring boot rest service, that is also secured by Azure AD. When we try to do an GET from e.g. chrome, we get redirected to Azure…

Tore Tjøtta
- 1
- 1
0
votes
1 answer
adal4j authentication with ClientCredential + login/password
I connect to a Azure AD with Adal4j to let a Native App access MS CRM Web api.
We use this method to get the token:
AuthenticationContext : public Future acquireToken(
final String resource, final String clientId,
…
0
votes
0 answers
Adal4J org.xml.sax.SAXParseException
My Mule application was working fine and all of a sudden i started getting the below exception.
Open quote is expected for attribute "classId" associated with an element type "object".
ERROR 2017-09-20 21:12:22,455 [pool-11-thread-1]…

vejay2k
- 121
- 1
- 4
0
votes
1 answer
ADAL (adal4j) could be used for on-premise?
Dears,
I have a MS CRM 2016 installed with ADFS claim based authentication. The STS server enpoint is available at https://adfs.domain.com/adfs/services/trust/mex.
Is Adal4j can help me to authenticate on my environment ? Or is it onky for…

Y. Piel
- 1
0
votes
1 answer
ADAL4j java - use refresh token with username and password to get the access token
I am connecting to Azure AD enabled API using java back-end server. I am able to get the Access Token by following java code.
String tenantId = "************";
String username = "***************";
String password = "*************";
…

Tanimak
- 134
- 1
- 9
0
votes
3 answers
Run Maven build with manually downloaded dependencies
Apologies if this is an easy fix, I'm new to Java and Maven and am struggling a little with getting it working.
I'm trying to implement the ADAL4J sample on my work machine. Unfortunately, because of various security reasons, my work machine does…

Dark Hippo
- 1,255
- 2
- 15
- 35
0
votes
1 answer
List allowed values for headnode and workernode while creating HDInsight cluster using resource manager template
I need to load the list of possible values that can be set for headnode and workernode in the template for creating the HDInsight cluster. Is there any java API available for this? Or any other way for getting the list. Also I an unable to find any…

Harinder
- 11,776
- 16
- 70
- 126
0
votes
1 answer
ADAL For Java on Mobile Devices: Prompt is Not Allowed
I've a Java program using ADAL4J that works great on a non-mobile device but when deployed to any mobile devices via Oracle MAF (which deploys as Cordova, HTML5, CSS), it fails on the AuthenticationContext method.
The error is:
…

SoonersBaby
- 31
- 7
0
votes
1 answer
Azure AD change temporary password using graph api
I am trying to change the password of a newly created user in Azure AD using Graph API. I am able to accomplish this for a user with a permanent password(password already changed once using the Azure UI) by calling the graph api using the access…

adarsh hegde
- 1,353
- 2
- 21
- 43
0
votes
0 answers
Non-interactive login to Azure AD using ADAL4J java
I have a web application for which users are being managed in the Azure AD. Every time a user logs in the app, the app should be able to authenticate the user against Azure AD in a non-interactive way. I am able to get the access token to my app…

adarsh hegde
- 1,353
- 2
- 21
- 43
0
votes
1 answer
adal policy identifier in adal4j
I try to push some data to a cloud using a adal4j token but I didn't get acces because of the policy identifier.
An existing app uses the adal library and uses a policy identifier String using the adal
AutenticationContext.acquireToken()
This…

Patrick
- 1
- 1