GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - microsoftgraph/nodejs-connect-sample: [ARCHIVED] This sample shows how to connect a Node.js app to a Microsoft work or school (Azure Active Directory) or personal (Microsoft) account using the Microsoft Graph API and the Graph JavaScript SDK to send an email. In addition, the sample uses the Office Fabric UI for styling and formatting the user experience.

This repository was archived by the owner on Nov 16, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
public
public
 
 
utils
utils
 
 
views
views
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.js
app.js
 
 
nodejs-connect-sample.yml
nodejs-connect-sample.yml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

[ARCHIVED] Microsoft Graph Connect Sample for Node.js

IMPORTANT

This project is being archived and replaced with the Build Node.js Express apps with Microsoft Graph. As part of the archival process, we're closing all open issues and pull requests.

You can continue to use this sample "as-is", but it won't be maintained moving forward. We apologize for any inconvenience.

This sample shows how to connect a Node.js app to a Microsoft work or school (Azure Active Directory) or personal (Microsoft) account using the Microsoft Graph API and the Graph JavaScript SDK to send an email. In addition, the sample uses the Office Fabric UI for styling and formatting the user experience.

Microsoft Graph Connect Sample for Node.js screenshot

Prerequisites

To use the Microsoft Graph Connect Sample for Node.js, you need the following:

  • Node.js version 4 or 5.
  • Either a Microsoft account or a work or school account

Register the application

  1. Sign into the App Registration Portal using either your personal or work or school account.
  2. Choose Add an app.
  3. Enter a name for the app, and choose Create application. The registration page displays, listing the properties of your app.
  4. Copy the Application Id. This is the unique identifier for your app.
  5. Under Application Secrets, choose Generate New Password. Copy the password from the New password generated dialog. You'll use the application ID and password (secret) to configure the sample app in the next section.
  6. Under Platforms, choose Add Platform.
  7. Choose Web.
  8. Enter http://localhost:3000/token as the Redirect URI.
  9. Choose Save.

Build and run the sample

  1. Download or clone the Microsoft Graph Connect Sample for Node.js.

  2. Using your favorite IDE, open ./utils/config.js.

  3. Replace the clientId and clientSecret placeholder values with the application ID and password that you copied during app registration.

  4. In a command prompt, run the following command in the root directory. This installs the project dependencies.

    npm install
  5. Run the following command to start the development server.

    npm start
  6. Navigate to http://localhost:3000/ in your web browser.

  7. Click the Connect to Microsoft Graph button.

  8. Sign in with your personal or work or school account and grant the requested permissions.

  9. Optionally edit the recipient's email address, and then choose the Send mail button. When the mail is sent, a success message is displayed below the button.

Questions and comments

We'd love to get your feedback about the Microsoft Graph Connect Sample for Node.js using the Graph JavaScript SDK. You can send your questions and suggestions in the Issues section of this repository.

Questions about Microsoft Graph development in general should be posted to Stack Overflow. Make sure that your questions or comments are tagged with [microsoftgraph].

Contributing

If you'd like to contribute to this sample, see CONTRIBUTING.MD.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Additional resources

  • Other Microsoft Graph Connect samples
  • Microsoft Graph

Copyright

Copyright (c) 2016 Microsoft. All rights reserved.

About

[ARCHIVED] This sample shows how to connect a Node.js app to a Microsoft work or school (Azure Active Directory) or personal (Microsoft) account using the Microsoft Graph API and the Graph JavaScript SDK to send an email. In addition, the sample uses the Office Fabric UI for styling and formatting the user experience.

Topics

devxsample

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

21 stars

Watchers

4 watching

Forks

14 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.