GithubHelp home page GithubHelp logo

rahulyhg / active-directory-android-native-v2-master Goto Github PK

View Code? Open in Web Editor NEW

This project forked from priyasindkar/active-directory-android-native-v2-master

0.0 2.0 0.0 91 KB

Get MS Exchange contacts

License: MIT License

Java 100.00%

active-directory-android-native-v2-master's Introduction

Services platforms author
active-directory
Android
danieldobalian

MSAL Android Sample Microsoft Graph API Sample

Getting Started Library API Reference Support

The MSAL Android preview gives your app the ability to begin using the Microsoft Cloud by supporting Microsoft Azure Active Directory and Microsoft Accounts in a converged experience using industry standard OAuth2 and OpenID Connect. This sample demonstrates all the normal lifecycles your application should experience, including:

  • Get a token for the Microsoft Graph
  • Refresh a token
  • Call the Microsoft Graph
  • Sign out the user

Example

PublicClientApplication pApp = new PublicClientApplication(
                this.getApplicationContext(),
                CLIENT_ID);
pApp.acquireToken(getActivity(), SCOPES, getAuthInteractiveCallback());

// ...

authenticationResult.getAccessToken();

Optional: Register your App

The app comes pre-configured for testing. If you would like to register your own app, please follow the steps below.

You will need to have a native client application registered with Microsoft using the Microsoft Identity App Registration Portal. Make sure to uncheck the Guided Setup box and save your app.

Steps to Run

  1. Clone the code.

    git clone https://github.com/Azure-Samples/active-directory-android-native-v2 
    
  2. Open Android Studio 2, and select open an existing Android Studio project. Find the cloned project and open it.

  3. Select Build > Clean Project.

  4. Select Run > Run 'app'. Make sure the emulator you're using has Chrome, if it doesn't follow these steps. In Android Studio, we recommend using the Pixel image with Android 24.

Important Info

  1. There's a more complete app that stores global state and has cleaner UI in the full-sample branch. Check it out!
  2. Redirect URI format: msal<YOUR_CLIENT_ID>://auth is strictly enforced by MSAL at the current time.

Community Help and Support

We use Stack Overflow with the community to provide support. We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before.

If you find and bug or have a feature request, please raise the issue on GitHub Issues.

To provide a recommendation, visit our User Voice page.

Contribute

We enthusiastically welcome contributions and feedback. You can clone the repo and start contributing now. Read our Contribution Guide for more information.

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.

Security Library

This library controls how users sign-in and access services. We recommend you always take the latest version of our library in your app when possible. We use semantic versioning so you can control the risk associated with updating your app. As an example, always downloading the latest minor version number (e.g. x.y.x) ensures you get the latest security and feature enhanements but our API surface remains the same. You can always see the latest version and release notes under the Releases tab of GitHub.

Security Reporting

If you find a security issue with our libraries or services please report it to [email protected] with as much detail as possible. Your submission may be eligible for a bounty through the Microsoft Bounty program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting this page and subscribing to Security Advisory Alerts.

active-directory-android-native-v2-master's People

Watchers

 avatar  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.