Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PagerDuty Discovery.ps1 #153

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

somnathr92
Copy link
Contributor

Changes made in the script are as follows:

  1. added parameters required for Oauth 2.0 as args[] serially as follows
    client_id
    client_secret
    region
    companysubdomain
    scope
    all these parameters are required to get the token value 2) in script constants token header is replaced with "bearer" from "Token token=" 3) A new function is added to get the token. this function returns the token value and this token value replaces the "accesstoken" keeping the rest of the code unchanged.

🛠 Changes being made

Give an overview of the submission and the use cases that you are addressing. Include an itemized list if you can

🏎 Quality check

  • Should this be added to Delinea Marketplace?

  • Has this been tested and verified?

  • Have you included a separate .md documentation for each script submitted?

Changes made in the script are as follows:
1) added parameters required for Oauth 2.0 as args[] serially as follows
	client_id
	client_secret
	region
	companysubdomain
	scope
all these parameters are required to get the token value
2) in script constants token header is replaced with "bearer" from "Token token="
3) A new function is added to get the token. this function returns the token value and this token value replaces the "accesstoken" keeping the rest of the code unchanged.
@tylerezimmerman tylerezimmerman merged commit e0ad3d2 into main Nov 12, 2024
@tylerezimmerman tylerezimmerman deleted the PagerDuty-DiscoveryIssue branch November 12, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants