-
Notifications
You must be signed in to change notification settings - Fork 82
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
Unable to set credentials: Root element is missing. #360
Comments
@KezHalls Good afternoon. Could you please share the following:
Just for reference, Set-AWSSamlRoleProfile CmdLet uses Based on shared error line
If you refer How an Identity-Federated User Gets Federated Access to AWS Service APIs, in the 1st step, the client on federated user's computer authenticates against AD FS. If authentication succeeds, AD FS sends the user a SAML assertion. In your use case, SAML assertion might be missing/empty. Thanks, |
Thankyou for such a thorough response. I think I see what you are saying in terms where the failure maybe occurring. Unfortunately the response logging is not working... or at least not creating the log file so I am unable to share anything and am having troubleshooting that. |
I wondered if there is anymore feedback on this. After conversations with MS this method will be the only way we will be able to achieve our goal. |
@KezHalls I'm unsure if you are So at high level, we would use below commands: Add-AWSLoggingListener MyAWSLogs C:\logsaws.txt
Set-AWSResponseLogging Always
Enable-AWSMetricsLogging Once the logs are collected, we could turn off response logging: Disable-AWSMetricsLogging
Remove-AWSLoggingListener Amazon MyAWSLog Additionally, also check How to view a SAML response for troubleshooting. Thanks, |
Apparently we use the AWS SSO service to handle the role mapping. We don't pass on the role mapping within the SAML assertion which is why this is not working and I won't be able to get it working. Back to the drawing board. |
closing |
|
Remove Nimble Studio from Powershell
Describe the bug
Unable to set credentials: Root element is missing. I get this error when I try to create a connection to AWS.
The account I am using is MFA exempted and access to aws. I had a job logged with AWS and they said I need to log it with you as they cannot find the issue.
Followed all posts
https://docs.aws.amazon.com/powershell/latest/userguide/pstools-getting-set-up-windows.html
https://docs.aws.amazon.com/powershell/latest/userguide/saml-pst.html
https://repost.aws/knowledge-center/adfs-grant-ad-access-api-cli#
Regression Issue
Expected Behavior
a successful connection to aws is made
Current Behavior
h endpoint to verify role data...
Set-AWSSamlRoleProfile:
Line |
11 | Set-AWSSamlRoleProfile -EndpointName $epName -NetworkCredential $cred …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Unable to set credentials: Root element is missing.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS Tools for PowerShell version used
AWS.Tools.EC2 3.7.403.1
AWS.Tools.SSO 3.7.400.5
AWS.Tools.SSOOIDC 3.7.400.5
PowerShell version used
Name Value
PSVersion 7.2.2
PSEdition Core
GitCommitId 7.2.2
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Operating System and version
windows 10
The text was updated successfully, but these errors were encountered: