Provide API endpoint for Pages with Access Control enabled
Release notes
Problem to solve
When using Gitlab Pages with Access Control enabled, users can only access the resource after authenticating in the UI. Some users would like to perform automations around this feature and we currently don't have any API endpoint for it.
GitLab Pages access control can be configured per-project, and allows access to a Pages site to be controlled based on a user’s membership to that project. Access control works by registering the Pages daemon as an OAuth application with GitLab. Whenever a request to access a private Pages site is made by an unauthenticated user, the Pages daemon redirects the user to GitLab. If authentication is successful, the user is redirected back to Pages with a token, which is persisted in a cookie. The cookies are signed with a secret key, so tampering can be detected.
Proposal
We should add a Pages API endpoint that would allow users to access the resources via Access Tokens.
Intended users
Feature Usage Metrics
Does this feature require an audit event?
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.