Prerequisites
💡 Summary
#2147 enhanced ScubaGear to automatically detect the M365Environment so that the user does not need to pass it as a command line parameter anymore when performing non-interactive authentication. This issue is to complete the implementation of that enhancement by making it work for interactive authentication. The goal is that a ScubaGear user won't have to pass M365Environment anymore, period.
Motivation and context
- Minimize the number of parameters that a user must pass to ScubaGear (make it easier to use)
- By automatically detecting the M365Environment there is less of a chance that ScubaGear will crash if the user forgets to pass the parameter or passes a wrong value.
- Since ScubaGear has moved to direct REST APIs and incorporated Power BI, there is more of a need to ensure that the M365Environment parameter is correct so that generating the tokens for the respective products using MSAL will know which target product URIs are needed for the JWT.
Implementation notes
- To implement this, it may require some strategic design changes that need to be reviewed and discussed with the team first. See comments below for more information including a rundown of prototyping already performed respective to this issue.
- The assignee should conference with @tkol2022 to discuss history before starting the work.
Acceptance criteria
Prerequisites
💡 Summary
#2147 enhanced ScubaGear to automatically detect the M365Environment so that the user does not need to pass it as a command line parameter anymore when performing non-interactive authentication. This issue is to complete the implementation of that enhancement by making it work for interactive authentication. The goal is that a ScubaGear user won't have to pass M365Environment anymore, period.
Motivation and context
Implementation notes
Acceptance criteria