This PowerShell script provides different methods of authentication to Microsoft Graph:
- Scopes only: Connect using a specific set of read-only scopes.
- App Secret: Authenticate using client credentials (AppId, AppSecret, and Tenant).
- SSL Certificate: Authenticate using an SSL certificate.
- Interactive: User authentication is required on a browser.
- Devicelogin: Device code for authentication is required on a browser.
- Status: Displays Current's Session Status (connected or disconnected).
- Disconnects: Disconnects Current's Session Status (whether connected or disconnected) and asks for confirmation.
- Skipconfirmation: Disconnects Current's Session Status (whether connected or disconnected) do not ask for confirmation.