Skip to content

getSPMetadata API call can't authenticate #10621

Closed

Description

@marijn-mijnhost

problem

When using the getSPMetadata API call, it always returns:

🙈 Error: failed to authenticate, please check the credentials

Other commands are working with my API key and secret key, only this command always fails. I'm Root Admin.

The command also isn't in the API list, but deeplink is available here. It's also mentioned in the documentation for 4.20, so should work. I changed the API cache file for cloudmonkey to still use it.

I also tried with cURL and the same error (other commands are here also working with my API key and secret key).

versions

4.20.0

The steps to reproduce the bug

$ cmk
set apikey XXX
set secretkey XXX
set url https://XXX:8443/client/api
getSPMetadata
🙈 Error: failed to authenticate, please check the credentials

All other commands are working without problems.

What to do about it?

Not sure, hope you can help and find the issue.

Activity

  1. boring-cyborg commented on Mar 26, 2025

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

  2. kiranchavala commented on Mar 27, 2025

    @kiranchavala
    Member

    @mijnhost

    Please enable the global setting

    1. saml2.enabled=true
    2. Restart the cloudstack-management service
    3. Try again via the curl command
  3. locked and limited conversation to collaborators on Mar 27, 2025
  4. converted this issue into a discussion #10625 on Mar 27, 2025
  5. added this to the unplanned milestone on Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions