Azure-AD-Auth
    
    
  
  
  
view release on metacpan or search on metacpan
lib/Azure/AD/ClientCredentials.pm view on Meta::CPAN
=head1 METHODS
=head2 access_token
Returns the access token that has to be sent to the APIs you want to access. This
is normally sent in the Authentication header of HTTPS requests as a Bearer token.
The access_token is cached in the object as long as it's valid, so subsequent calls
to access_token will return the appropriate token without reauthenticating to Azure AD. 
If the token has expired, access_token will call Azure AD to obtain a new token transparently.
Example usage:
  my $auth = Azure::AD::ClientCredentials->new(...);
  use HTTP::Tiny;
  my $ua = HTTP::Tiny->new;
  my $response = $ua->get(
    'http://aservice.com/orders/list', 
    {
    
  
  
  lib/Azure/AD/ClientCredentialsV2.pm view on Meta::CPAN
=head1 METHODS
=head2 access_token
Returns the access token that has to be sent to the APIs you want to access. This
is normally sent in the Authentication header of HTTPS requests as a Bearer token.
The access_token is cached in the object as long as it's valid, so subsequent calls
to access_token will return the appropiate token without reauthenticating to Azure AD.
If the token has expired, access_token will call Azure AD to obtain a new token transparently.
Example usage:
  my $auth = Azure::AD::ClientCredentialsV2->new(...);
  use HTTP::Tiny;
  my $ua = HTTP::Tiny->new;
  my $response = $ua->get(
    'http://aservice.com/orders/list',
    {
    
  
  
  lib/Azure/AD/Password.pm view on Meta::CPAN
=head1 METHODS
=head2 access_token
Returns the access token that has to be sent to the APIs you want to access. This
is normally sent in the Authentication header of HTTPS requests as a Bearer token.
The access_token is cached in the object as long as it's valid, so subsequent calls
to access_token will return the appropriate token without reauthenticating to Azure AD. 
If the token has expired, access_token will call Azure AD to obtain a new token transparently.
Example usage:
  my $auth = Azure::AD::Password->new(...);
  use HTTP::Tiny;
  my $ua = HTTP::Tiny->new;
  my $response = $ua->get(
    'http://aservice.com/orders/list', 
    {
    
  
  
  
( run in 0.693 second using v1.01-cache-2.11-cpan-a1d94b6210f )