-
Notifications
You must be signed in to change notification settings - Fork 5
🚀[Feature]: Add functions to revoke tokens + remove some functions #432
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
Conversation
…cation Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
You are missing the version that I wanted you to add:
|
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
... I've added support for the bulk credentials revocation endpoint using Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…ate functions Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
…tion and streamline token revocation in `Disconnect-GitHubAccount` and `Revoke-GitHubAccessToken`
…finition in `Auth` tests
…OKEN to prevent false negatives
… integrate it into `Disconnect-GitHubAccount` for improved token management
Module GitHub - 0.33.0 published to the PowerShell Gallery. |
GitHub release for GitHub v0.33.0 has been created. |
This pull request introduces new functionality for revoking GitHub access tokens, enhances the
Disconnect-GitHubAccount
command to revoke tokens, and refactors or removes outdated examples and tests. These changes improve security and streamline token management.Hiding some functions that were public previously
New Features for Token Revocation
Revoke-GitHubAppInstallationAccessToken
(private) function to revoke installation access tokens for GitHub Apps. This invalidates tokens and ensures they cannot be reused.Revoke-GitHubAccessToken
(public) function to revoke a list of exposed or unused credentials. Supports batch processing for up to 1000 tokens per request.Enhancements to Existing Commands
Disconnect-GitHubAccount
to revoke access tokens during disconnection, improving security by preventing token reuse for Installation Access Tokens.Refactoring and Cleanup
CallingAPIs.ps1
related to JWT and installation access tokens.Apps.Tests.ps1
by removing redundant JWT and installation token tests, and added a test to verify that revoked tokens fail API calls.