Legacy Dev Forum Posts

 View Only

Sign Up

Why does my login with client credentials get an "access denied" error?

  • 1.  Why does my login with client credentials get an "access denied" error?

    Posted 06-05-2025 18:32

    liebichw | 2024-11-20 22:43:26 UTC | #1

    I should write an OAuth client running in Amazon AWS (a Lambda function) which should access Genesys Cloud functions. This function is written in JavaScript and uses the Genesys JavaScript PSDK. As a lambda function it must use the "client grant" OAuth flow. I created an OAuth client with clientID and clientSecret and configured the Lambda function to use it. When logging in, however, I get an HTTP Error 400 "Bad Request", with body "access denied". What does this mean? What is missing here?

    EDIT: OK, I found it out by myself - an IP-range restriction was at work here.


    system | 2024-12-14 12:34:05 UTC | #2

    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: 30358