GithubHelp home page GithubHelp logo

daoduchuynh / office365-java-connect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pietrobr/office365-java-connect

0.0 0.0 0.0 3.82 MB

Sample of Authentication from a Java Application to Office 365 and Outlook API

Java 100.00%

office365-java-connect's Introduction

Office 365 and Java Integration Sample

This sample demostrate how to authenticate an Office 365 user from a Java application and calling some APIs. This samlpe uses the ADAL Library to get Auth Tokens and then use them to call specific API. In details, the sample does:

  • Create an Access and Refresh Token to call Azure AD Graph APIs.
  • Call the Azure AD Graph API to get a list of users registered in Azure AD.
  • Create an Access and Refresh Token to call Office 365 Outlook APIs.
  • Call the Office 365 Outlook APIs via REST and get a list of user's mail messages.
  • Create an Access and Refresh Token to call Office 365 File APIs.
  • Call the Office 365 File APIs via REST and get a list of user's OneDrive for business files.

To make this sample works you need to create a Azure AD Native application and autorize for the API you want to call. You can add a native client application in Azure and grant proper permissions to it.

You also need an Office 365 Tenant for the Office 365 APIs. The ClientID and Tenant will be used as constants and must be added to the code.

If you are an Android developer you can look at the O365 Android Connect sample.

p.s.: sorry if this documentation it's not very exhaustive.

office365-java-connect's People

Contributors

pietrobr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.