Azure Active Directory Authentication Library for Java (adal4j)
Questions tagged [adal4j]
62 questions
1
vote
0 answers
Using OAuth2 to call the O365 API to access a shared calendar using a specific client Id?
Im using adal4j to authorise a clientId/secret combination to access a shared calendar.
Heres the code I use to gain the access token.
AuthenticationContext context = null;
AuthenticationResult result = null;
ExecutorService service = null;
try {
…

Morty
- 21
- 2
1
vote
1 answer
How can I define AuthenticationCallback when trying to access access token from refresh token in Adal4j?
I'm using Adal4j Java library.I already have a refresh token but would like to get access token based on the refresh token.
I have the following code and I couldn't figure out how to define AuthenticationCallback
ExecutorService service =…

WowBow
- 7,137
- 17
- 65
- 103
1
vote
0 answers
adal4j : AuthenticationContext.acquireToken : SSLHandshakeException: PKIX path building failed: unable to find valid certification path
Since 14th Oct 2016, we are facing these random SSL handshake Exception while fetching accessToken via adal4j : AuthenticationContext.acquireToken()
For :
AZURE_AD_TOKEN_ENDPOINT = "https://login.windows.net/"
AZURE_VAULT_RESOURCE =…

YogeshORai
- 63
- 3
- 11
0
votes
0 answers
Is Apache Olingo Odata v4 client FIPS compliant
Has anyone ever check Apache Olingo Odata V2 and V4 Client libraries (including dependencies) for FIPS compliance?
We are using below libraries in our project…

jason7
- 1
0
votes
1 answer
Failed to authenticate the user (Active Directory Password) on remote (docker run on Azure DevOps)
i am unable to authenticate the user within connect to azure sql db on remote (docker run on Azure DevOps). It is running without an issue locally from Katalon on my computer or via MSSMS with the same user.
This is the keyword i am…

tarino
- 1
- 1
0
votes
2 answers
'java.lang.RuntimeException: Driver com.microsoft.sqlserver.jdbc.SQLServerDriver claims to not accept jdbcUrl,'
I am using below dependencies.
com.microsoft.sqlserver
mssql-jdbc
7.4.1.jre8
…

Hari Krishna
- 3,658
- 1
- 36
- 57
0
votes
1 answer
ADAL4J javax mail parse exception when trying to connect to Azure SQL DB from Spark Submit
I am trying to use the Spark connector for Azure SQL Databases library (GitHub) to get data from Spark and bulk insert it into an Azure Database. I am trying to use 'ActiveDirectoryPassword' as an authentication method, but adal4j always throws an…
0
votes
1 answer
Azure Devops REST API authentication failing when using Azure Active Directory
I am using the adal4j Java library to authenticate Azure DevOps REST API calls through Azure Active Directory. I am able to authenticate using Personal Access Tokens but not using Active directory. This is the code I have been…

garvit
- 3
- 1
0
votes
1 answer
OneDrive authentication using ADAL4J
The Active Directory Authentication Library for Java (ADAL4J) allows authentication via access token to the Microsoft Graph API, using the following (simplified) code:
public String authenticate(String authorizationUrl, String clientId, String…

PNS
- 19,295
- 32
- 96
- 143
0
votes
1 answer
I want to fetch email using spring mvc or boot using azure with 1.6 v
I am trying to do fetch email using azure through my app.I am not able to configure the adal4j to the Spring MVC app. I tried updating to java 1.8 still the issue persists. Method 2-Also,I execute a separate boot application with the below…
0
votes
0 answers
Dynamics 365 - Non - expiring license key ? Server 2 Server Authentication
we have a Java Application which needs to use the Dynamics Web API.
Right now we are using the non-interactive user authentication approach. (We have an Active Directory user which is set to non-interactive with an email and password).
This works…

HideAndSeek
- 374
- 3
- 16
0
votes
1 answer
Authenticating with rbac Service Principal causes 403 Audience validation failed. Audience did not match
Authenticating with rbac Service Principal causes 403 Audience validation failed. Audience did not match
I am trying to give an application access to a blob storage container but with minimum required permissions (Read / Write)
Using the azure cli i…

heuts
- 117
- 1
- 12
0
votes
1 answer
403 Forbidden error when reading mails through Graph API with valid JWT token
I need to read mails from an Outlook mailbox via Graph API. The application I am writing is a scheduled batch job without user interaction. I can't use application permissions, because of compliance reasons. The application must not be able to…

Lukas Stampf
- 23
- 6
0
votes
1 answer
How add custom claim to Azure AD access token (JWT) at token request time?
The current JWT from Azure AD has the following structure:
AzureAD JWT:
{
"aud": "a5aa555a-aa55-5aaa-5a55-555a5aa55a5a",
"iss": "https://sts.windows.net/a5aa555a-aa55-5aaa-5a55-555a5aa55a5a/",
"iat": 1547084136,
"nbf": 1547084136,
"exp":…

Don Rhummy
- 24,730
- 42
- 175
- 330
0
votes
4 answers
How do I connect to Azure SQL DB with AD password using JDBC configuration?
I am trying to connect from my Spring Boot (2.0.1) Web Application to an Azure SQL DB using Azure AD (with the Application as the DB user) but cannot seem to connect the dots.
I followed the steps for Connecting using Azure AD Auth. However, I get a…

jrobkc
- 117
- 1
- 14