0 votes

With the depreciation of MS Basic authenication, how to do change powershell scripts within adaxes to use OAuth 2.0 token-based authorization

by (60 points)

1 Answer

0 votes
by (228k points)

Hello,

You will need to update your Microsoft tenant registration in Adaxes to use an Azure application account: https://www.adaxes.com/help/RegisterAdaxesAsAppMicrosoftAzure. Once done, you will need to update your scripts to use relevant approaches for connections: https://www.adaxes.com/sdk/CloudServicesScriptContextClass.

However, there are some cases, when you will still need to specify user account credentials as not all cmdlets support basic authentication. It can be done by storing the credentials in the Run as section of the Run a program or PowerShell script action. For details, see section Running the script as a specific user of the following SDK article: https://www.adaxes.com/sdk/ServerSideScripting/#running-the-script-as-a-specific-user. You can also check the following example from our script repository: https://www.adaxes.com/script-repository/enabledisable-multi-factor-authentication-for-a-user-in-office-365-s544.htm.

Related questions

0 votes
1 answer

Dear support, The current limitation of powershell 2.0 in script is getting more and more a problem for us. I am for instance unable to use the ConverTo-Json cmdlet what ... in version 3.0 that is very very handy when working with web services. Regards,

asked Jan 22, 2016 by Pierre (750 points)
0 votes
0 answers

Is there a mechanism to perform an annual account re-authorization? on an Annual basis, People Managers are required to re-authorize the AD user account permissions there reports have ... Adaxes perform such an action? It appears that it may be able to do so.

asked Feb 17, 2020 by nicolais (20 points)
0 votes
0 answers

Hello We have installed Adaxes to use it with 3 AD Forests. Can we use Adaxes as an LDAP Authentication/Authorization Tool for our different LDAP/Web Applications. In ... membership, we can replace our IDM Solution. Thank you for your help regards Gustav

asked Sep 2, 2016 by gustavmuenster (40 points)
0 votes
1 answer

Hi, How can we make sure that only the allowed users can login to the web UI? We are planning to have two instances of Adaxes web UI. The first one should allow ... only. The other one should be accessible for people from other offices (for self-service).

asked Feb 4, 2011 by john.adams (70 points)
0 votes
1 answer

Morning, Since updating Adaxes to the latest version that uses Powershell 4.0 we are unable to query SQL 2008 R2 database in a scheduled task. The Activity History provides ... .com/questions/642 ... he-runtime Any assistance would be appreciated. Regards, Ben

asked Aug 22, 2018 by AllianceIT (130 points)
2,807 questions
2,541 answers
6,615 comments
65,214 users