I am trying to connect to the Sharefile API with Powershell, I am using the instructions found at https://jstrong013.github.io/Invoke-RestMethod-with-ShareFile-API/ to do this.
My problem is that when I enter the username and password for my account I keep getting told that it is incorrect. Could this be because my account is authenticated via SSO from Azure AD? Is there any way to use the API if that is the case or will I need to set up a local sharefile account just for this?
Here is the exact error message:
You'll need a ShareFile account, first of all. Then you grab an API key for each app you want to build from your account settings page. We recommend that you start out by checking out our Quick Start Guide and then learn how to authenticate with us, before you dive into the code samples and the documentation. When using the Private Token method of authentication, the Private API token needs to be encoded using BASE64 encoding. This can be done with your own scripts, or with the use of a free BASE64 encoding tool. Once you have an Encoded Key, you will need to include the encoded Private API token in your header of any API you are making.
Lee williams running for my life mp3 download. Invoke-RestMethod : {'error':'invalid_grant','error_description':'invalid username or password'}
At C:UsersxxxxxxFor Work LaptopGet API Key for Citrix.ps1:18 char:13 + $response = Invoke-RestMethod $tokenroute -Method POST -Body $creds - . + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand Applicable Products
Objective
Article Contents (click a link to skip to that section) Monster hunter generations 2 star key quests.
About Two-Step VerificationTwo-Step Verification uses your phone to provide an extra layer of security for your username. After you log in, you are asked to enter a verification code that is sent to your phone via text message (SMS) or voice call, and supported Authenticator apps like Google and Microsoft as an option instead of your usual password.This feature is available to both Client and Employee Users. Two-Step Verification is supported on iOS and Android mobile devices. Note: Some apps require an app-specific password that must be generated each time you want to sign into the app Note 2: This feature is not available for trial accounts. Enforcing Two-Step Verification![]()
By enabling this feature, you make the Two-Step Verification option available to all users on the account. ShareFile Admins have the option to set policies requiring specific groups of users to enroll in Two-Step Verification. Important!All ShareFile accounts will default to requiring two-step verification for employee users. Administrators will not be able to disable this setting until after the account's Master Administrator completes a legally binding opt-out waiver.
You may find the opt-out waiver located in the Admin Settings > Security > Login & Security Policy > Two-Step Verification section.
Once you click on the Fill out the waiver link, you are guided through the following screens:
After you have completed the opt-out waiver, you may uncheck the Require for employee users checkbox and click Save.
InstructionsFAQ
Users have the following choices for backup:
The text / SMS or voice based passcode will expire in 2 minutes
At this time, the authenticator app support serves as a backup where the phone is the primary option. We are validating the right set of capabilities to enable authenticator app as the primary option with phone as a backup.
Enabling Two-Step Verification
Two-Step Verification settings are managed at Personal Settings > Personal Security > Two Step Verification.
You are prompted to enter your country as well as the phone number you would like ShareFile to send an SMS or voice message to. You do not need to enter your country code,. You can choose to receive either a text (SMS) message or a voice call to your provided phone number. Pressing Send will send a code via the selected method to the provided number. Enter the code on the next screen in order to complete the setup of two-step verification. You are given the option to trust the computer you are currently using. Use this if you do not want to be prompted for another verification code when using this computer and browser in the future. The option to trust the computer can be disabled by the ShareFile Administrator for Client Users.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |