Questions tagged [adal4j]

Azure Active Directory Authentication Library for Java (adal4j)

62 questions
7
votes
2 answers

Android Microsoft dynamics CRM adal4j Login Issue

I'm using Microsoft aad:adal4j to handle the dynamics crm login from Mobile. After Implementing I am Getting the below Exception. What am I doing wrong? Error java.lang.NoSuchMethodError: No static method…
Prasanth S
  • 3,725
  • 9
  • 43
  • 75
4
votes
1 answer

Acquire access token from Azure AD for native app registration (PowerBI) using client credentials

I am using adal4j (version 1.2.0) from a backend application to acquire an access token to be able to use the PowerBI REST APIs to embed reports (more specifically, the GenerateToken method). I have registered a native app in Azure, and provided it…
3
votes
0 answers

How can i create user with custom attributes

I can create user: User user = new User(); user.accountEnabled = true; user.displayName = "some name"; user.mailNickname = "some-nick"; user.userPrincipalName = "upn@contoso.com"; PasswordProfile passwordProfile = new…
amz
  • 31
  • 1
3
votes
2 answers

com.microsoft.sqlserver.jdbc.SQLServerException: MSI Token failure: Failed to acquire token from MSI Endpoint

I want to Access the Azure SQL Database using App service API(Java) with MSI (Managed Service Identity) authentication. I am trying to find out the how to connect Azure sql with MSI from Azure App service for Java. Here is the connection string I…
Ammanuel g
  • 151
  • 2
  • 4
3
votes
3 answers

Using two azure AD app registrations for mobile and web

I have a mobile app which gets token directly from azure login. And I have a service which is using adal4j in spring boot. I cannot use the mobile generated token to authenticate spring service. Becase I use two different azure app registrations for…
chan4lk
  • 107
  • 2
  • 8
3
votes
0 answers

Databricks connection to Azure SQL Database with ActiveDirectoryPassword

In my Python 3 notebook in Azure Databricks, when I run this: %scala import com.microsoft.azure.sqldb.spark.config.Config import com.microsoft.azure.sqldb.spark.connect._ val config = Config(Map( "url" ->…
fubar2021
  • 141
  • 1
  • 5
2
votes
2 answers

getting error while Databricks connection to Azure SQL DB with ActiveDirectoryPassword

I am trying to connect Azure sql db from Databricks with AAD - Password auth. I imported azure sql db& adal4j libs. but still getting below error java.lang.NoClassDefFoundError: com/nimbusds/oauth2/sdk/AuthorizationGrant stack trace: at…
Ramana
  • 25
  • 1
  • 5
1
vote
1 answer

"AADSTS700003: Device object was not found in the tenant" issue started since the beginning of September

We see lot of issues (and it's increasing) across many tenants, when we're trying to acquire token : AuthenticationContext.acquireTokenByRefreshToken : Sep 13 13:55:26 Caused by: com.microsoft.aad.adal4j.AuthenticationException:…
SlavaG
  • 518
  • 8
  • 28
1
vote
1 answer

onprem machines to Azure Active Directory so we can access ActiveDirectoryMSI authentication as well as IMDS SERVER

We want to use AzureSqlServer with ActiveDirectoryMSI authentication as well as token-based authentication and We are able to execute successfully from VM created in Azure network and added as a member of the Azure AD group. For that, we have…
Ajay Kumar Jaiswal
  • 352
  • 1
  • 6
  • 24
1
vote
0 answers

ADAL4j proxy issue for java

I am trying to connect with azure using adal4j@1.6.4 library for java to get the access token. My application is behind a corporate proxy so I have to set the proxy to connect with azure. Following is the snippet of code String url =…
Sohail Ashraf
  • 10,078
  • 2
  • 26
  • 42
1
vote
2 answers

How do I use MSAL4J to acquire a token for a daemon?

I have a daemon written in Java and running on AWS. It calls multiple Microsoft APIs using tokens based on client Id, client secret and tenant id for each of 100s of user accounts that I am supporting. All worked fine with MS Azure Active Directory…
Jay Riddell
  • 11
  • 1
  • 1
  • 2
1
vote
1 answer

Generated URLs for HTTPS connections are coming out as plain HTTP in Azure Web App

I have a Java webapp running on Tomcat deployed to Azure App Service. The authentication is handled via Azure AD. Everything seems to working fine in Local environment. When we deploy the app to Azure, the httpRequest.getScheme() always return HTTP…
1
vote
1 answer

Unable to open my app from office 365 portal. getting undefined sign-on url for application error

I'm integrating Azure AD login authentication to my web app. I have created an account in azure development portal and registered my app as web app. In the app registration settings, I have provided the redirect URL like below, redirect URL:…
Heisenberg
  • 147
  • 1
  • 4
  • 14
1
vote
0 answers

Azure AD redirecting to Sign-on URL instead of Redirect URL

I'm integrating Azure AD login authentication to my web app. I have created an account in azure development portal and registered my app details. Following detail are provided during the app registration in azure portal. I have provided my web app's…
Heisenberg
  • 147
  • 1
  • 4
  • 14
1
vote
1 answer

JDBC Connection for active director-universal MFA authentication

I need to connect to the sql server using Active directory-universal with MFA support. First, can we connect to it using JDBC connection string? Because it is an Interactive mode for authentication unlike Active directory Integrated and Active…
Rik
  • 81
  • 1
  • 15
1
2 3 4 5