Skip to content

SyncSolutionToTeams API doesn't work for modern authentication #7441

@s-KaiNet

Description

@s-KaiNet

When you try to use SyncSolutionToTeams API:

POST /_api/web/{scope}appcatalog/SyncSolutionToTeams(id=xxxxx)

It throws an error:

"Authentication method is not allowed."

It happens if you use any OAuth-based Azure AD authentication - I've tried different auth flows: ROPC, Auth Code, App only with certificate. None of them worked. It seems it works only for cookie-based (with username and password auth) which is a very old auth method currently not supported by many applications.

Could you fix this API so that it works with Bearer tokens from Azure AD as well?

Linking related issue from m365 cli


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APIarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions