NAME
Browser::OAuth - Get an OIDC token for a CLI application
SYNOPSIS
my $oidc = Browser::OAuth2->new(client_id => 'application');
my $token = $oidc->get_token(
scope => [ 'email' ],
);
DESCRIPTION
This module will open a browser for you to log into some OIDC provider, and will temporarily run a webserver on localhost to receive the redirect with the results from your browser.
METHODS
new
my $oauth2 = Browser::OAuth2->new(client_id => '...');
- client_id
-
The client identifier, this argument is mandatory.
- client_secret
-
The client secret. This argument is optional.
- auth_method
-
The client authentication method. This defaults to
client_secret_basic.