Code Monkey home page Code Monkey logo

android-azureactivedirectory's Introduction

Android - Azure Active Directory Demo

This is a sample which demonstrates how you an authenticate with Windows Azure Active Directory (WAAD) from an Android application. You will then use the access token retrieved from WAAD to gain access to a web service that has been secured with WAAD. This application was built with a minimum SDK version of 15 and a target version of 18 but newer or older versions of Android should work without issue.

Below you will find requirements and deployment instructions.

Requirements

  • Eclipse - This sample was built with Eclipse Kepler.
  • Android SDK - You can download this from the Android Developer portal.
  • Windows Azure Account - Needed to create the Windows Azure Active Directory Account as well as to deploy the web service to Web Sites (if you choose to do so). Sign up for a free trial.

Source Code Folders

  • /source/ - This contains code for the iOS Client application.

Additional Resources

I've released a blog post which walks through this sample as well as how to setup the web service and WAAD account. It's highly recommended to read this post before / while looking at the source code.

#Setting up your Windows Azure Active Directory account and Web Service To set up your WAAD account and create a web service you can access with the clients, please read this post on Securing a Windows Store Application and REST Web Service using Windows Azure AD.

To make things easier, you can also download the source code from the above post here. Be sure you change your domainName and audience variables in the global.asax file for the web service.

#Client Application Changes The client application is currently set to run against an existing WAAD account and site I have set up. At the time of writing, these services should be working and you should be able to authenticate using the following credentials:

  1. Username: [email protected]
  2. Password: ThisIs@Test

You can also follow instructions in this post regarding setting up your own service and AD account.

Contact

For additional questions or feedback, please contact the team.

android-azureactivedirectory's People

Contributors

acomsmpbot avatar chrisrisner avatar

Watchers

Jon Galloway avatar Haishi Bai avatar  avatar Pablo "Lito" Damiani avatar James Cloos avatar Neil Hutson avatar Panos Kefalidis avatar Matt Gibbs 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.