azure-authentication

Why does my login to MS SQL with AzureML dataprep using Windows authentication fail?

雨燕双飞 提交于 2019-12-23 07:03:40
问题 I tried connecting to a MS SQL database using azureml.dataprep in an Azure Notebook, as outlined in https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-load-data#load-sql-data, using MSSqlDataSource, using code of the form import azureml.dataprep as dprep secret = dprep.register_secret(value="[SECRET-PASSWORD]", id="[SECRET-ID]") ds = dprep.MSSQLDataSource(server_name="[SERVER-NAME]", database_name="[DATABASE-NAME], [PORT]", user_name="[DATABASE-USERNAME]", password=secret)

Azure credentials have not been set up or have expired, please run Connect-AzAccount

北战南征 提交于 2019-12-13 04:07:19
问题 Related to the following question (Azure DevOps - Custom Task - PowerShell with Azure Authentification) I am using now Connect-AzAccount to login by using a Azure DevOps Custom Task. In the next step I want to run multiple jobs in parallel to first manipulate and then deploy certain Azure resources via templates. Working with AzureRM this worked without problems but after switching to Az I always get the error Your Azure credentials have not been set up or have expired, please run Connect

How to know from which point HttpClient task cancellation is triggered

别等时光非礼了梦想. 提交于 2019-12-11 19:52:10
问题 I have the following code to fetch the bearer token and then call the Web API in a c# application. public async Task<HttpResponseMessage> SendHttpRequest() { HttpResponseMessage response = null; try { HttpClient client = new HttpClient(); string accessToken = await GetBearerToken(resourceUrl, clientId, clientSecret, tokenProviderUrl); if (!string.IsNullOrEmpty(accessToken)) httpRequest.Headers.Add("Authorization", ("Bearer " + accessToken)); response = await client.SendAsync(httpRequest); }

Get Authentication error when put object to Azure storage

家住魔仙堡 提交于 2019-12-11 15:27:09
问题 I am using java to make a REST Api call to Azure, put an object to its storage. I did this successfully last week but now its now working for some reasons. The error message is as below: <?xml version="1.0" encoding="utf-8" ?> <Error> <Code>AuthenticationFailed</Code> <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:a15f2626-0001-004f-778c-f34383000000 Time:2017-07-02T23:43:20.2826278Z<

Azure not redirecting after login

半城伤御伤魂 提交于 2019-12-11 14:33:06
问题 I have been following the https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-android-get-started-users for configuring my app for logging into Google using Azure authentication services, I'm getting a login screen where I click on a account and log in. but, I'm routed to the following successfully logged in screen with no redirect to my app : I have quadrupled checked my redirect URLs and other URLs and done the following: 1) Google credentials ID & key for web

This line hangs forever: authContext.AcquireTokenAsync(“https://graph.windows.net”, credential);

烈酒焚心 提交于 2019-12-11 06:04:56
问题 My issue is: When I use Microsoft's project, the line of code mentioned in the title runs and authenticates correctly, and I can perform operations on users as demonstrated in the "B2CGraphClient" sample project. However when I copy-and-paste B2CGraphClient.cs into my web application, this line of code hangs forever. How can this be? The line that hangs is #184 in B2CGraphClient.cs . Details: I am using the sample project named "B2CGraphClient" mentioned in this article, whose zipfile is

Microsoft Graph Authentication - Delegated permission

亡梦爱人 提交于 2019-12-10 10:36:51
问题 I am able to access resources from Microsoft Graph using Get access without user. However, this method does not allow me to access resources which require delegated permissions. I also tried to use the Get access on behalf of a user method, but it will require my user to sign in through a webpage, which is not desired in my scenario. Is it possible to generate an authorization code with a long life time (possibly over a year) and use that code to request an access token, which can then be

Using the connection String to Authenticate into Azure

主宰稳场 提交于 2019-12-08 07:17:18
问题 I have given an Connection String. I need to use this to authenticate into Azure Blob Storage. The connection String, as it appears, contains: Key, AccountName, protocol, Suffix. Connection String Example: DefaultEndpointsProtocol=https;AccountName=$$$$$*****;AccountKey=kjdjkfhdjskhfsdfhlksdhfkldshfishishfldslflkjfklsVvJDynYEkiEqWCZkdfkhdkjshfdshfs==;EndpointSuffix=core.windows.net Now when I look up the authorization article there are multiple methods mentioned and there are no article or

Microsoft Graph Authentication - Delegated permission

寵の児 提交于 2019-12-06 10:36:44
I am able to access resources from Microsoft Graph using Get access without user . However, this method does not allow me to access resources which require delegated permissions. I also tried to use the Get access on behalf of a user method, but it will require my user to sign in through a webpage, which is not desired in my scenario. Is it possible to generate an authorization code with a long life time (possibly over a year) and use that code to request an access token, which can then be used to get resources that require delegated permissions? Note: I know generating an authorization code

How to obtain value of “x5t” using Certificate credentials for application authentication

北城余情 提交于 2019-12-02 12:37:01
问题 I was trying to obtain JWT token from Microsoft Azure Active Directory using Certificate credentials for application authentication. I am struck at figuring out the value of "x5t". I have tried with SHA-1 fingerprint value available in the public certificate. SHA-1 hash of the public certificate using FVIC. But i keep getting below error when send the request to MSA login endpoint { "error": "invalid_client", "error_description": "AADSTS70002: Error validating credentials. AADSTS50012: Client