Questions tagged [adal4j]

Azure Active Directory Authentication Library for Java (adal4j)

62 questions
1
vote
1 answer

Azure AD Authentication redirect loop

I have a Java Web App which is integrated with Azure AD. Now when I run the app locally, everything works fine. But When I deploy the WAR file to the Azure App Service, the authentication redirection seems to be going in an infinite loop. The…
AhmedVali
  • 185
  • 2
  • 16
1
vote
2 answers

Azure Connection Can Not Connect Certificate Error

I am having a hard time trying to authenticate against a particular Tenant ID of Azure. The code that I am using is the following one: public abstract class Azure { private final static String GRAPH = "https://graph.windows.net/"; private…
delucaezequiel
  • 483
  • 2
  • 9
  • 26
1
vote
1 answer

Why does acquiring an Azure AD token by refresh token have no signing algorithm?

When I get a token by authorization code (authContext.acquireTokenByAuthorizationCode), I get a JWT (idToken) that is signed and has the proper headers: { "typ": "JWT", "alg": "RS256", "x5t": "wLLmYfsqdQuWtV_-hnVtDJJZM3Q", "kid":…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
1
vote
1 answer

Adal js Library - this.adalService.acquireToken method giving "Token renewal operation failed due to timeout" on first time login

Though there are some link related to this questions but I did't find any relevant answer, So hoping someone will answer this time. Here is the scenario, In my Angular Application I am using adal-angular4 which is wrapper over Adal.js Issue :…
Rahul Rai
  • 205
  • 1
  • 12
1
vote
1 answer

Azure AD authentication via REST to an AAD enterprise App

I am using ADAL4j to attempt to authenticate to our onprem sharepoint instance (which itself is using AAD to authenticate as an enterprise app) to authenticate users when coming in through the standard flow. I have set up my consumer AAD app to…
Anthony
  • 189
  • 1
  • 15
1
vote
1 answer

Not able to get Azure token using adal4j Api

am trying to read user profile/image form Microsoft graphic and am using adal4j-1.5.0.jar to generate the azure token so that based on token i can make a call to graphic API/Microsoft delve. i am facing issue in below code. it was simple moving to…
yousuf
  • 23
  • 7
1
vote
0 answers

Get user First and Last Name from AzureAD using adal4j - AADSTS50076 error

I've created native app in Azure AD. I have piece of code that acquire token using user from Azure AD user(which is email)/password credentials: public static void main(String[] args) throws MalformedURLException, ExecutionException,…
piotrassss
  • 205
  • 1
  • 4
  • 10
1
vote
2 answers

Azure AD Adal4j Token recieved after refresh token is not signed JWT

I am developing an authentication service for my web based java application using Azure AD OpenID connect framework. I am referring to adal4j-1.2.0.jar The authentication is happening as per the behavior. I am getting the JWT claims and able to…
1
vote
0 answers

Azure AD OAuth SSO intergration with Spring boot application

I am developing a few microservices with Spring Cloud (Eureka, Zuul). I want to integrate Azure AD OAuth2 SSO into my application. I searched several blogs and articles but failed find any tutorials for Azure AD. Please advise me how this can done.
Bhushan
  • 1,489
  • 3
  • 27
  • 45
1
vote
1 answer

Microsoft Graph API access token validation failure (java)

I am trying to set up a native java application that will leverage MS Graph's API to access a users OneDrive after authenticating using ADAL4j. I am using this library to get my access token. So far I have this code: import…
1
vote
1 answer

What class/method in Adal4J verifies the signature of an Azure AD access code

Is it possible in ADAL4J to verify the signature of a received access token from Azure AD? I wrote my own code to retrieve the jwks_uri from the openid connect .wellknown meta doc and get the public key indicated by the kid from the doc the jwks_uri…
JB007
  • 123
  • 8
1
vote
1 answer

How to use Azure AD Graph API access for service principals?

I have a working Azure AD/Azure daemon application using adal4j that uses user/password authentication. Due to issues with ADFS, I wish to also be able to authenticate using a service principal (client ID/secret). This seems to work fine for the…
MushyMiddle
  • 419
  • 6
  • 14
1
vote
1 answer

Block user login from Azure portal

Is it possible to block login through Azure portal for a user but at the same time allow the user to get authenticated through API (ADAL4J API)? I have an application where I use admin credentials for operations on users. However I want to restrict…
adarsh hegde
  • 1,353
  • 2
  • 21
  • 43
1
vote
1 answer

Office 365 v2 API Authorization code is malformed or invalid

I've the following auth code copied from the browser for a user who granted our app to use their Office 365 email.…
WowBow
  • 7,137
  • 17
  • 65
  • 103
1
vote
1 answer

Authenticate guest user in Azure AD using graph api

I am trying to authenticate users in my web application using Azure AD to store user records. For authenticating the user I am using ADAL4J API (https://github.com/AzureAD/azure-activedirectory-library-for-java). I am using the the…
adarsh hegde
  • 1,353
  • 2
  • 21
  • 43