Cmdlets for ServiceNow

Build 20.0.7654

GetOAuthAccessToken

Gets the OAuth access token from ServiceNow.

Input

Name Type Required Description
Grant_Type String False Set this to password to use your username and password to obtain an access token. Use this if you do not already have a refresh token.

使用できる値は次のとおりです。code, password

デフォルト値はpasswordです。

CallbackUrl String False The URL the user will be redirected to after authorizing your application.
State String False An arbitrary string of your choosing that is returned to your app; a successful roundtrip of this string helps ensure that your app initiated the request.

デフォルト値はstateです。

Authmode String False The type of authentication mode to use. Select App for getting authentication tokens via a desktop app. Select Web for getting authentication tokens via a Web app.

使用できる値は次のとおりです。APP, WEB

デフォルト値はAPPです。

Verifier String False The verifier token returned by ServiceNow after using the URL obtained with GetOAuthAuthorizationUrl.

Result Set Columns

Name Type Description
OAuthAccessToken String The OAuth token.
OAuthRefreshToken String The OAuth refresh token.
ExpiresIn String The remaining lifetime for the access token in seconds.

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7654