Questions tagged [adal]

The Azure Active Directory Authentication Libraries (ADAL) gives you the ability to add support for Microsoft's cloud identity APIs to your application, including support for Office365 and Work Accounts. Supports native clients such as Windows, Windows Phone, iOS, OSX, Android, and Linux and server clients such as Windows Server, Node.js and Java.

Filter by
Sorted by
Tagged with
0 votes
1 answer
169 views

How to avoid pop up tag in browser while getting access token with using MSAL in python

I'm using below code snippet to get a access token. Everything works as excepted except the code itself pops up new tag in browser and then returns access token. How can avoid from the pop-up window? `...
niso's user avatar
  • 97
0 votes
1 answer
81 views

MFA On behalf Flow Failing https://github.com/Azure-Samples/active-directory-dotnet-webapi-onbehalfof-ca

I'm testing the following code and have set up the required app registrations in Azure: https://github.com/Azure-Samples/active-directory-dotnet-webapi-onbehalfof-ca I expect to be asked for MFA login ...
gazzaCa's user avatar
1 vote
1 answer
519 views

How to cache the token and when expired it should Silently renew it

I have a .Net Web API secured with Azure AD and through C# console application I need to generate a token and call the API. I am using the old ADAL.NET approach as it's a legacy app and supports V1.0 ...
user584018's user avatar
  • 10.5k
1 vote
0 answers
53 views

cordova run ios is interrupted due to the plugin ADAL

I am getting following error while execute command 'cordova run ios' Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: DYLD 1 Library ...
John's user avatar
  • 13
0 votes
1 answer
91 views

Does a token generated using ADAL library to call our custom APIs, work even after AD Graph is deprecated - (which as of now is June 30, 2023)?

We are using ADAL library's AuthenticationContext object to acquire token. The "Authority" we are using is "login.microsoftonline.com/{tenant-Id}. The token is then used to call our ...
Shiva Naru's user avatar
0 votes
1 answer
351 views

GetConfigurationAsync for OpenIdConnectConfiguration returns Object reference not set exception

I am running version 6.28.1 of Microsoft.IdentityModel.Protocols.OpenIdConnect in a 4.8 .NET Framework project. Trying to get the configuration to validate a token and get an exception that I can't ...
Paola Badillo's user avatar
0 votes
1 answer
213 views

How to configure client applications?

I have two applications (ui and api) in Azure Active Directory. How do I add ui application id to knownClientApplications list in api application manifest via PowerShell script?
user989988's user avatar
  • 3,156
1 vote
0 answers
225 views

Implement flow to allow Power BI to authenticate into my .NET 6 WebAPI

I have implemented a Web API with .NET 6, hosted in an Azure App Service, with an Enterprise App and App Registration setup to allow users in the org to authenticate to it. My React front-end ...
Coxy's user avatar
  • 8,888
0 votes
1 answer
179 views

Not clearing token when logging out using Angular, MSAL and Azure AD B2C

I have downloaded the Azure AD B2c Angular tutorial from https://github.com/Azure-Samples/ms-identity-javascript-angular-tutorial I have set it up and it's all running ok: I can login If I try to ...
John McArthur's user avatar
0 votes
1 answer
202 views

Login failed for user token-identified principal when connecting via sql_driver_manager.getConnection

I am trying to connect to Azure SQL using Service Principle to create views, but it says com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ClientConnectionId: XXXXX-XXXX-XXXX ...
Ramaraju.d's user avatar
  • 1,301
1 vote
0 answers
72 views

LoginAndEnrollAccount(emailText) does not prompts the email and password with updated Intune SDK

Ours is an Intune Application with Xamarin forms. Authentication is handled default by Intune SDK. Application does not use ADAL nor MSAL. after the Intune SDK update, LoginAndEnrollAccount does not ...
Micheal Patrick's user avatar
2 votes
0 answers
209 views

ADFS Authentication in flutter application

I have a requirement to authenticate my flutter application from ADFS. I tried the ADAL package (https://pub.dev/documentation/flutteradal/latest/) but it doesn't seem to be fulfilling my needs. I don'...
saad khurshid's user avatar
2 votes
0 answers
716 views

Azure AD Authentication, Next-Auth JWT and .NET Core Web API

I've set up a Next.js app to authenticate to Azure AD using Next-Auth, and this is successfully returning a JWT token. I'd like to use this token for authentication in a .NET Core Web API project but ...
Paul J's user avatar
  • 43
0 votes
1 answer
148 views

Automatic token refresh after 1 hour . React-adal

import { AuthenticationContext } from "react-adal"; import config from "./config.json" const { clientId, tenantID, redirectUrl, logoutUrl } = config; const adalConfig = { tenant:...
yogesh's user avatar
  • 5
0 votes
1 answer
261 views

Android MSAL Login failed incase if My app is already Auto enrollment successful using Company portal app

We are migrating our authentication of Azure from ADAL to MSAL. Our app support Intune feature. We are facing login failure during MSAL login, if the app is already automatically enrolled using ...
Shanmugapriyan's user avatar
0 votes
1 answer
213 views

PYTHON FLASK : AADSTS50011: The redirect URI 'http://127.0.0.1:5000/auth/redirect' specified in the request does not match

Hello I followed this : https://github.com/Azure-Samples/ms-identity-python-flask-webapp-authentication to deploy an azure sign-in in my local flask application. I'm getting this error : AADSTS50011: ...
Nicolas LE GALL's user avatar
1 vote
1 answer
2k views

What is difference between AcquireTokenForClient vs AcquireTokenSilent In MSAL.NET?

I have started using MSAL. now I have 2 implementation of getting token from MSAL # ##First one is## app.AcquireTokenForClient(scopes).ExecuteAsync(); ## another one is ## app.AcquireTokenSilent ...
Maulik Dave's user avatar
0 votes
1 answer
121 views

Confusion on MSAL.Net which one is correct implementation?

I have refer this link https://bnek.github.io/code/2020/09/17/Authenticating-SPA-with-msal-js-2.0.html Its Implementation with MSAL is **## In this code we are not using ...
Maulik Dave's user avatar
0 votes
1 answer
208 views

Blazor Web Assembly failing on AuthenticationContext for secure API access

I have ported a Blazor server application over to WASM and the authority to contact an API is failing on the AuthenticationContext part of the authorisation for access to a secured API. public class ...
The OrangeGoblin's user avatar
-1 votes
1 answer
765 views

Can someone help how to create graph client using token of IAuthenticationResult (msal4j)

Using ADAL library in Java , I created token (using client credential provider) ,the resulted token is TokenCredentialAuthProvider which is of IAuthenticationProvider type. this token i was able to ...
Vrushabh 's user avatar
0 votes
1 answer
2k views

Can I use acquireTokenByclientCredential using PublicClientApplication

I am migrating a NodeJS APP from ADAL to MSAL authentication. I am using API acquireTokenByClientCredintial for a PublicClientApplication but I am not able to get the Report. If I use ...
Kotana Sai's user avatar
  • 1,349
0 votes
2 answers
1k views

AADSTS9000411: The request is not properly formatted. The parameter 'prompt' is duplicated

I am using adal.js for implementing the login to my app. For some reason, I cannot use admin_consent so I am using prompt=consent in extraQueryParameter. I am getting the prompt as well but after ...
Pragya Sharma's user avatar
0 votes
1 answer
564 views

ErrorAccessDenied when using app with all permissions

I am using the code from https://github.com/Azure-Samples/ms-identity-python-flask-webapp-call-graph#register-the-sample-applications-with-your-azure-active-directory-tenant I have added new functions ...
Alok Dutt's user avatar
0 votes
1 answer
362 views

ADAL to MSAL react migration givening token unauthorization error

I am migrating from ADAL to MSAL then getting the Unauthorized error when passing token into my api. (using React and .NET core ( .NET core 2.1 framework) UIClient application is already registered ...
a_developer's user avatar
3 votes
2 answers
684 views

OpenIdConnectSecurityKeyProvider.RetrieveMetaData Exception - Unable to retrieve document from :'System.String'

This has been working for 3+ years. This morning everything is broken. My SPA uses a C# Web API on the backend and MSAL.js on the front end. Users Auth via O365 to get a Bearer Token, all web requests ...
Jeremy Bond's user avatar
1 vote
1 answer
254 views

[NodeJs Upgrading from ADAL to MSAL]: Cannot create property 'authenticationScheme' on string

We are Upgrading from ADAL to MSAL when doing so we are facing issues. The Code we implemented is const msal = require('@azure/msal-node'); const msalConfig = { auth: { ...
Kotana Sai's user avatar
  • 1,349
0 votes
1 answer
143 views

Does Service Principal (SPN) values has to be change while doing ADAL.Net to MSAL.Net migration?

We have a Web Application in .Net Core 6.0 that we have registered in Azure AD app registration in azure portal. We have used ADAL.net library in our code for Authentication. Now, we are migrating ...
Mohit Jain's user avatar
0 votes
1 answer
935 views

what is difference between ConfidentialClientApplicationBuilder vs ITokenAcquisition?

what is difference between ConfidentialClientApplicationBuilder vs ITokenAcquisition ? as per understanding ConfidentialClientApplicationBuilder use for application token. ITokenAcquisition for ...
Maulik Dave's user avatar
0 votes
0 answers
49k views

ADAL.js - what is the IFrame target origin for embedding PowerBI dashboard

I'm using the PowerBI REST API along with ADAL.js and getting Dashboards. I want to embed a Dashboard in an IFrame. I'm using Angular.JS So what did was something like this. Notice I have used "*&...
cmgchess's user avatar
  • 8,446
1 vote
1 answer
5k views

How to connect to Microsoft Dataverse API Endpoint with Python

I'm facing an issue in connecting to Microsoft Dataverse API endpoint through Python. The code is broken down into three parts: A) Token Generation B) Endpoint API call Option 1 C) Endpoint API call ...
Aakash Basu's user avatar
  • 1,699
0 votes
1 answer
74 views

How do I check to see if my AzureAD version is V1 or V2? with middle ware

AZURE AD V1 V2 above all agree but v1.0 tokens contain both the x5t and kid claims, v2.0 tokens contain only the kid claim. and i m using ISecurityTokenValidator custom token validator public ...
Maulik Dave's user avatar
0 votes
1 answer
928 views

AddMicrosoftIdentityWebApi .net core 5 web api ? will this support version V1 and V2 Api ? MSAL

i m using react my front end using ADAL.js and my back end using MSAL ### below is code services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddMicrosoftIdentityWebApi(Configuration....
Maulik Dave's user avatar
1 vote
1 answer
1k views

Is it possible to create JWT tokens using key vault keys?

i want to us Key Vault key to create JWT token and then validate it. Im using this code: public static async Task<string> SignJwt() { var tokenHandler = new JwtSecurityTokenHandler(); ...
michasaucer's user avatar
  • 4,667
0 votes
1 answer
430 views

Is it possible to to use Azure AD V1 V2 token token using MSAL in Microservices?

I m working with azure add and have more then 10 microservices. have existing implementation with ADAL library. now I have started converting my microservice to use MSAL. as we know ADAL use V1 token ...
Maulik Dave's user avatar
0 votes
1 answer
313 views

Is ADAL used in ASP Net Core with OpenIdConnect

I have an old web application in ASP .Net core 2.1 which is authenticating users against Azure AD. Give the fact that Microsoft will end support for ADAL, recommending to move to MSAL, I need to ...
Alin's user avatar
  • 613
1 vote
1 answer
2k views

Problems with Microsoft.AspNetCore.Authentication.JwtBearer 401 unauthorised in .NET 6 ASP.NET Core

I have had a problem recently in my .NET 6 ASP.NET Core web api project. I use identity server 4 and in the api client project, Microsoft.AspNetCore.Authentication.JwtBearer just following the getting ...
Philip Johnson's user avatar
2 votes
2 answers
3k views

'AuthenticationBuilder' does not contain a definition for 'AddMicrosoftIdentityWebApp'

I'm attempting to add support for Graph into a .Net 6 application. I've previously used Graph in a .Net 5 application but I'm having some trouble understanding how to wire things up using the .Net 6 &...
Jeff Bryant's user avatar
0 votes
0 answers
192 views

Vue Nuxt Adal authentication middleware

I am using adal to authenticate in Azure and I am using this example https://github.com/hakim-ali/adal-nuxt-portal/blob/main/pages/index.vue. I was thinking if there is a way to create auth middleware ...
Mark B's user avatar
  • 9
0 votes
1 answer
507 views

Entity Framework issue connecting to Azure SQL MI database using Azure AD password authentication

I have a .NET Framework 4.7.2 web app that is using EF6.2 (Entity Framework) on 2012R2 server, connecting to an on-prem SQL server without any issues. Now, I am trying to connect the same app to an ...
SivaS's user avatar
  • 27
0 votes
0 answers
1k views

How can I set ID token lifetime for Azure AD?

I'm using MSAL for users to login my React app. The ID token will be created in Frontend and sent to Backend for authentication. However I've found out the ID token expiration time is 1 hour. I'm ...
Neuro Astro's user avatar
0 votes
1 answer
343 views

SSO for Cordova iOS App using brokered authentication

I have successfully added SSO using ADAL plugin for direct authentication. Now I am trying to add Brokered authentication to satisfy the conditional access plolicies(Device ID registration and Intunes ...
Sandy2912's user avatar
1 vote
1 answer
208 views

Can't Get Authorized Using ADAL Auth Flow

I'm writing an Azure Function app in Python that needs to access an API: https://service.flow.microsoft.com/ I keep getting a 401 Unauthorized response. I can access other resources using this same ...
jb0070's user avatar
  • 11
1 vote
1 answer
6k views

MSAL - MsalGuard on Redirect URI - getting into redirect loop

I'm implementing msal in my angular application and I'm using msal-v1 library. I have taken angular-7 sample from the documented samples and tried implementing the below code in my enterprise ...
RealSteel's user avatar
  • 1,871
1 vote
0 answers
1k views

How to retrieve Device ID from Microsoft Authenticator App(MSAL) in Android?

I am new to Android and as well MSAL. So do forgive me, if I have missed some obvious documentation. However, so far I could not find any documentation on how to do the following : How to get the ...
Uma Priyadarsi's user avatar
0 votes
1 answer
252 views

UWP - Enable Private Network in ADAL Authentication

We are creating a UWP app using Xamarin forms and for Login purposes, ADAL has been used. Authentication has been happening successfully when we are connected to VPN. But when we try to run the same ...
Maverick's user avatar
  • 374
2 votes
1 answer
1k views

How to get ServiceClientCredentials after migrating from ADAL to MSAL

The support for ADAL ends on June 30, 2022 and Microsoft recommends migrating applications to MSAL. During migration, I encountered a difficulty migrating a code that accesses Data Lake Storage from ...
Paweł Bulwan's user avatar
2 votes
0 answers
394 views

Unexpected value 'MsAdalAngular6Module' imported by the module 'DynamicTestModule'. Please add an @NgModule annotation

i'm working with angular 13 and implementing Adal Library. So my problem is that i have some test failing and don't know why. This is my app.module This is my app.component.spec.ts The app.component....
Guido's user avatar
  • 55
1 vote
2 answers
2k views

Moving Azure credentials to Docker

I have a Docker volume from ${USERPROFILE}/.azure to /root/.azure:rw. In my Dockerfile, I'm installing az-cli and then using DefaultAzureCredentials class in .NET (https://learn.microsoft.com/en-us/...
user avatar
0 votes
1 answer
325 views

Flask App with Azure AD Example on Windows 10

I try the example on: https://github.com/Azure-Samples/ms-identity-python-webapp with Windows 10, but I get an error with ModuleNotFoundError: No module named 'flask_caching.backends.filesystem' (...
Emil's user avatar
  • 63
1 vote
2 answers
680 views

How to convert this code to scala (using adal to generate Azure AD token)

I am currently working on a Scala code that can establish a connection to an SQL server database using AD token. There are too little documentation on the subject online so I tries to work on it using ...
Haha's user avatar
  • 1,001

1
2 3 4 5
33