Accessing Gitlab pages with access token

I’ve got a project which hosts static files on gitlab pages (but not a website). I’m trying to access this programmatically. However, because our instance uses OAuth, Gitlab is bouncing my requests to be authenticated to our Azure server where they fail.

Is there a way that I can allow programmatic access to my Pages URL using an authentication token? I’ve tried https://username:token@pages.my_gitlab.example.com/mygroup/myproject/resource.txt but pages seems to ignore it. I don’t want to make the page public access either.