Kernel::System::Credential::OAuth2::MicrosoftGraphApp

NAME

Kernel::System::Credential::OAuth2::MicrosoftGraphApp

https://docs.microsoft.com/graph/auth-v2-service

ATTRIBUTES

Tenant

The tenant to be used for authentication.

METHODS

CanRefresh

Checks if the access token can be refreshed.

NeedsAuthorizationConsent()

Verifies if the credential is in a state that needs the user consent to get the authorization token.

Refresh

Performs needed operations to refresh the access token data.

    # Refresh authorization if needed.
    my $Refreshed = $AuthCredential->Refresh();

    # Force the authorization to refresh.
    my $Refreshed = $AuthCredential->Refresh( Force => 1 );

Returns

    1 - success
    undef - in case of any error
Scroll to Top