cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

Continuos deployment with o365 cli

Open Fabske411 opened this issue 8 years ago • 6 comments

Question:

I try to figure out if there is a possiblity of continous deployment/integration of sharepoint framework solutions together with the o365 cli. When connecting to SPO I need to open the browser in order to get signed in. Is there a possibility to automate this sign-in process (eventually by sending credentials with the connect request) ?

Fabske411 avatar Mar 20 '18 19:03 Fabske411

You only need to sign in once. After that, the refresh token is persisted and reused for obtaining valid access token. Unfortunately, at the moment there is no way to pass credentials into the CLI.

waldekmastykarz avatar Mar 20 '18 19:03 waldekmastykarz

Hey @Fabske411, I've just submitted a PR #392 which allows authentication using credentials. Once it's merged, you will be able to authenticate non-interactively with your user name and password.

waldekmastykarz avatar Apr 01 '18 17:04 waldekmastykarz

@Fabske411 we've just published a beta of the Office 365 CLI (v1.2.0) with support for authentication using credentials. It would be awesome if you could give it a try and see if it's working for you. You can get the beta using npm i -g @pnp/office365-cli@next.

waldekmastykarz avatar Apr 04 '18 18:04 waldekmastykarz

@waldekmastykarz awesome job! works like a charm. This feature enables me to set up an automated build / release chain. thank you

Fabske411 avatar Apr 08 '18 07:04 Fabske411

Cool! Great to hear it’s working for you! Ok to close this issue?

waldekmastykarz avatar Apr 08 '18 08:04 waldekmastykarz

Yes. Can be closed 😊

Von: Waldek Mastykarz [mailto:[email protected]] Gesendet: Sonntag, 8. April 2018 10:58 An: SharePoint/office365-cli [email protected] Cc: Scherr, Fabian [email protected]; Mention [email protected] Betreff: Re: [SharePoint/office365-cli] Continuos deployment with o365 cli (#375)

Cool! Great to hear it’s working for you! Ok to close this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/SharePoint/office365-cli/issues/375#issuecomment-379533271, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ajor7hmyILsQcR9r7_wQVSMfRbNkm5ctks5tmdEggaJpZM4SyhFe.


 >>> business. people. technology. <<<

adesso AG mit Sitz in Dortmund Vorstand: Michael Kenfenheuer (Vors.), Christoph Junge, Andreas Prenneis Vorsitzender des Aufsichtsrates: Prof. Dr. Volker Gruhn Amtsgericht Dortmund HRB 20663

Laden Sie hier Ihr kostenloses Whitepaper zum Thema Customer Experience Management herunter. www.den-kunden-verstehen.de

Fabske411 avatar Apr 08 '18 09:04 Fabske411