-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide clearer guidance on how to use your own Azure AD app registration to connect to Office 365 #1496
Comments
We have a similar use case for the authentication using certificate in CI/CD pipeline. It would be helpful if we can get any documentation for the same. |
I could use this document(s), right about... now. |
@tommymaynard I've been putting an outline together for this, its rough round the edges but might be enough to help you out, I hope to complete it tomorrow and get it into the docs over the weekend. As an example, this will guide you through creating custom Azure AD application with only SharePoint Read Access and use it with Office 365 CLI. Create Azure AD appGo to Azure Portal Set environment variablesLinux/Mac OS (Bash/Zsh)Persist variables for session Persist variables permanently Linux/Mac OS (PowerShell Core)Environment variables set in bash/zsh will persist to pwsh session PowerShell (Windows 10)Persist variables for session Persist variables permanently Check variable values using in new PowerShell session Login using Custom AD AppExecute Invoke command to test permissionsReturn to command line |
@garrytrinder This write up was huge. I know so little about Azure (AWS is more of a specialty at the moment), although I've spent several years consuming and writing everything I can about PowerShell. Anyway, there's no way I could've ever known how to walk though and configure AAD and this app without this assistance. I would've walked away from this project today without it, and I really need something for a CI/CD pipeline that'll run on a Linux container with PowerShell 7.0.0, and interact with SharePoint. I know the goal here wasn't an AAD app setup, as you're more interested in slimming down the required permissions, but it. was. amazing. You should seriously be proud; this needs to live on the Office 365 CLI site. The above information has gotten me to a point where I can run a couple |
Thank you for your kind words @tommymaynard 😊 I'm glad I was able to help you out and thank you for your honesty. We are really appreciative that you stuck with our project and hope that you will continue to use it in the future. 👍🏻 It will certainly be added to the website in more detail, if you have any other feedback or suggestions around documentation that would help you, we would absolutely love to hear them. |
Raised from #1460
When using the CLI against a tenant for the first time, users are required to consent to the permissions required by the multi-tenant Azure AD application when using either the device login or username & password flows.
Whilst this is fine in the majority of cases, there are scenarios where this is inconvenient and administrators are not comfortable with granting such permissions to a multi-tenant app in their environment.
In this scenario, administrators will want to provide their own Azure AD app registration to use with the CLI to enable greater control the permissions that are granted.
We should provide an end to end tutorial to help guide users through the process of how to generate a certificate (OS specific), creating their own Azure AD app registration and how to use it with the CLI.
The text was updated successfully, but these errors were encountered: