You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the GitHub module as a GitHub App via automation:
In function app for automation, we want to be able to have context retained and ready when a function is called towards a target.
When the IAT is detected and we have the context for the app, refresh the IAT.
Scenario:
Automation is running in the context of a GitHub App (no IATs currently defined).
Automation needs to run Delete-GitHubTeam -Name 'someTeam' -Organization 'someOrg'.
Delete-GitHubTeam requires, IAT, UAT or PAT, Team permission
Module gets the context matching the request:
Type = IAT
Permissions contains 'Teams'
TargetType = 'organization'
Target = 'someOrg'
If the IAT is found:
Module checks that the time now is greater than my TokenExpirationDate (subtract a var offset that can be stored in config)
Check if parent is available:
Type = 'App'
ClientID = $me.ClientID
Recreate context for the IAT (or just refresh the token)
The text was updated successfully, but these errors were encountered:
Description
When running the GitHub module as a GitHub App via automation:
In function app for automation, we want to be able to have context retained and ready when a function is called towards a target.
When the IAT is detected and we have the context for the app, refresh the IAT.
Scenario:
Delete-GitHubTeam -Name 'someTeam' -Organization 'someOrg'
.TokenExpirationDate
(subtract a var offset that can be stored in config)The text was updated successfully, but these errors were encountered: