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

Certificate-based Authentication requires Authorization change in Headers for each cmdlet #26

Open
bdeyo-vmware opened this issue Sep 7, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bdeyo-vmware
Copy link
Collaborator

Thanks to the information from https://dexterposh.blogspot.com/2015/01/powershell-rest-api-basic-cms-cmsurl.html, CBA for WS1 is possible cross-platform in PS Core.

However because the CMSURL scheme requires the $uri.absolutePath of each URI as part of the header itself, every API call needs to be able to use this.

The result of this is going to need to be a function that converts the Header to the CBA version. This function will need to be called within every single WS1 cmdlet if someone specifies a -CertificateAuth parameter.

This probably should be called
convert-ws1CertBasedAuth or such. The input is the $url fo the API call, the output will be the CMSHeader found in Dexter's function.

Regression testing is going to need to be done for every cmdlet to add this in.

@bdeyo-vmware bdeyo-vmware added enhancement New feature or request help wanted Extra attention is needed labels Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants