DESCRIPTION
Authenticate against gitlab registry
SYNOPSIS
use Docker::Registry::Auth::Gitlab;
use HTTP::Tiny;
my $auth = Docker::Registry::Auth::Gitlab->new(
username => 'foo',
access_token => 'bar',
);
my $req = $auth->authorize(HTTP::Request->new('GET', 'https://foo.bar.nl'));
my $res = HTTP::Tiny->new()->get($req);
ATTRIBUTES
username
Your username at gitlab.
access_token
The access token you get from gitlab with 'read_registry' access.
repo
The repository you request access to.
jwt
The endpoint to request the JWT token from, defaults to 'https://gitlab.com/jwt/auth'. You can use a 'Str' or an URI object.
METHODS
get_bearer_token
The builder of the bearer_token
attribute.
authorize
Implements the method as required by Docker::Registry::Auth. Add the "Authorization" header to the request with the "Bearer" token.
SEE ALSO
Docker::Registry::Auth, Docker::Registery::Types and Docker::Registry::Gitlab.