Skip to content

Credentials flow and refresh_token: IndexError Exception #1209

Description

@tbronson

While using the credentials flow (app permissions), refresh_token can fail with an IndexError.

connection.py line 884

result = self.msal_client.acquire_token_silent_with_error(
            scopes=scopes,
            account=self.msal_client.get_accounts(username=self.username)[0],
        )

get_accounts can and does return an empty list when using app credentials, rather than delegated user credentials

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions