Skip to content

Update the base SPO command to display error when authType is app-only with a 'secret' #2591

@vipulkelkar

Description

@vipulkelkar

Description

If the CLI is connected in app-only mode with a Client ID and Secret (authType : secret), an error message must be displayed to the user on executing any spo command, indicating that the operation will fail and recommend the user to connect using an alternate login type to execute spo commands.

The base SPO command should be updated to check the authType and display the error accordingly.

Additional Information

Based on the proposal in #2171. the login command will be extended to support authentication using client ID and secret. As SharePoint does not support auth using AAD Client ID and secret at the moment, the CLI commands calling SharePoint APIs will fail.

This issue can be implemented after #2171 is completed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions