GitLabPHP / Client

GitLab API v4 client for PHP
MIT License
932 stars 451 forks source link

[11.15] Added functionality to handle access tokens #800

Open inuitviking opened 6 months ago

inuitviking commented 6 months ago

Closes #799 Closes #798

This pull request includes:

The above methods are almost 1:1 to the same functionality available for project access tokens, making this pull request super easy to make. Tested with the available test tools seen in this project (albeit locally) and against my company's private group (with Premium). Works as expected in that regard.

The rotate methods simply rotate the specified access token, and returns the resulting array, containing also the token itself; this is handy for automatically updating variables in Gitlab containing these tokens.

m4tthumphrey commented 6 months ago

@inuitviking Hello! Thanks for contributing on this project! However I am no longer involved with this, I think it is still under my username but I haven't used or look at this for a good few years now. I believe @GrahamCampbell is a maintainer these days.

inuitviking commented 6 months ago

@inuitviking Hello! Thanks for contributing on this project! However I am no longer involved with this, I think it is still under my username but I haven't used or look at this for a good few years now. I believe @GrahamCampbell is a maintainer these days.

Ah, sorry for bothering you! Thank you for mentioning Graham.

GrahamCampbell commented 6 months ago

Thanks for the PR. I've re-triggered the CI, and will try to review this shortly, for the 11.15.0 release. I wasn't able to allocate the time to get this into today's 11.14.0 release I'm afraid.

inuitviking commented 6 months ago

I have added some more things since, as I got more requests for specific features. Will update tomorrow (Monday)

inuitviking commented 6 months ago

I have added some more things since, as I got more requests for specific features. Will update tomorrow (Monday)

By the way, and excuse my late comment, this has been done on that Monday.