Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated (now removed) auth API endpoint breaks PowervRA Connect-vRAServer #287

Closed
tocano33 opened this issue May 31, 2023 · 1 comment

Comments

@tocano33
Copy link

Steps to reproduce

Connect-vRAServer -Server [server] -Credential (Get-Credential)

Expected behavior

Connects to the vRA Server (and either successfully authenticates or fails with invalid credentials)

Actual behavior

HTTP 400 Bad Request error

I believe this is because Connect-vRAServer uses the endpoint /csp/gateway/am/idp/auth/login?access_token which was deprecated in a recent version and as of v8.12 has been removed completely, thus completely breaking PowervRA user/pass credential authentication.

Rather, line 165 needs to instead use endpoint /csp/gateway/am/api/login?access_token

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.17763.3770
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.3770
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

# as well as 

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

> (Get-Module PowervRA).Version
Major  Minor  Build  Revision
-----  -----  -----  --------
5      2      0      -1

> $vRAConnection
# N/A
tocano33 pushed a commit to tocano33/PowervRA that referenced this issue May 31, 2023
@jonathanmedd jonathanmedd added this to the v6.0.0 milestone Jul 5, 2023
jonathanmedd added a commit that referenced this issue Jul 5, 2023
Fixes deprecated/removed auth API endpoint - Issue #287
@jonathanmedd
Copy link
Contributor

Thanks for raising and fixing in #288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants