Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  POST to login using SAML2

    Posted 06-05-2025 18:24

    Barbara_Post | 2022-12-19 13:06:38 UTC | #1

    Hello, I'm trying to get an access token with a SAML POST request to PureCloud login server, providing a SAML Assertion I just generated. Please can you help me finding what's wrong? Thank you very much. Here are screenshots using Postman:


    tim.smith | 2023-01-03 16:30:42 UTC | #2

    Please open a case with Genesys Cloud Care to investigate further. We do not have access to your private information to troubleshoot this via the forum.


    Jerome.Saint-Marc | 2023-01-04 09:43:43 UTC | #3

    Hello,

    I just noticed that you are using "grant-type" as key in your body. That's not the proper key/name - it must be "grant_type" as described here. That's probably the reason of your HTTP error.

    Regards,


    Barbara_Post | 2023-01-04 08:57:44 UTC | #4

    Better, but I left this task for now. Thanks for seeing my typo Jerome.

    {

    "error": "invalid_client",

    "description": "client not found",

    "error_description": "client not found"

    }


    Jerome.Saint-Marc | 2023-01-04 09:43:43 UTC | #5

    That invalid client error should be because Genesys Cloud cannot find a SAML OAuth Client defined in your region (mypurecloud.de) with the provided clientId. Seeing the beginning of your Authorization header (screenshot), I think your Authorization header is not encoded properly - or the base64 value includes a character it shouldn't include. Decoding PWRj, it gives: =dc and the Genesys Cloud OAuth clientId value can't start with an = The value is base64 encoding of clientId:clientSecret

    Regards,


    system | 2023-02-04 09:18:21 UTC | #6

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 17687