This describes how to authenticate with Microsoft Live using Goa, as described in Oauth2 for Apps Script in a few lines of code (which you should read first for background).
The library, cGoa, is available under this project key.

MZx5DzNPsYjVyZaR67xXJQai_d-phDA33

Setting up

You’ll need to create an App. The dashboard/developers console can be found here. Your one time setup would look something like this.

The example

The example includes 3 functions.
  • A doGet example for a web app.
  • An example where the token has already been setup by a one off doGet example
  • An example of consuming the token
The doGet should be published
and will create a consent screen like this, from which the redirect URI can be copied and added to the App dashboard.

The patterns

Why not join our forum, follow the blog or follow me on Twitter to ensure you get updates when they are available.