Home / Companies / PagerDuty / Blog / Post Details
Content Deep Dive

Build Sophisticated Apps for Your PagerDuty Environment Using OAuth 2.0 and API Scopes

Blog post from PagerDuty

Post Details
Company
Date Published
Author
Mandi Walls
Word Count
1,673
Language
English
Hacker News Points
-
Summary

PagerDuty users can enhance their workflow management by creating custom applications that integrate with the platform, particularly helpful for administrative tasks like importing user information or setting up new services. This process involves using Scoped OAuth 2.0 to manage permissions and access, allowing developers to control which objects users can access based on their login credentials. The guide outlines the steps to register a new app with PagerDuty, configure it with a redirect URL, and obtain authorization tokens, emphasizing the importance of permissions for security. Users can run a sample Flask application to demonstrate the login and token retrieval process, and are advised to manage token lifetimes by using refresh tokens to avoid frequent logins. The guide also covers how to revoke tokens and delete applications when they are no longer needed, encouraging users to provide feedback on these features via the PagerDuty Community Forums.