PagerDuty-Samples / pagerduty-service-maintenance-sample

Client-side JavaScript sample that enables and disables PagerDuty Services
0 stars 1 forks source link

Is this sample still confirmed as working? #4

Open geburke opened 1 month ago

geburke commented 1 month ago

Is this sample still confirmed as working?

After following the instructions. 1) I click on "Authorize PagerDuty" 2) that sends me to the "Submit Consent" page at https://identity.pagerduty.com/oauth/authorize 3) I click on "Submit Consent" and I get the following error:

In the browser ReferenceError: error is not defined

The last call is a POST to: https://identity.pagerduty.com/oauth/token

which returns a 401 The parameters for that call are all populated:

grant_type: authorization_code
code: <redacted>
redirect_uri: <redacted>
client_id: <redacted>
code_verifier: <redacted>

browser is a chrome: Version 128.0.6613.114 (Official Build) (x86_64)

geburke commented 1 month ago

issue resolved, must use "Classic User OAuth"