Updated Personal Access Token logic to allow create tokens with expiry date beyond 365 days
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
This MR adds a check in max_expiration_lifetime_in_days function(link) which determines the max expiry date of a token. The ensures if require_personal_access_token_expiry? is set false, the function returns positive infinite number. A never-expiring token would be created eventually.
Relates to #508144 (closed)
Edited by Pratibha Gupta