Giter VIP home page Giter VIP logo

android-appauth-sample-application's Introduction

Android Native Application SSO Sample Application

android-appauth-sample-application is a basic sample application to demonstrate native application single sign-on using the AppAuth library for Android from the OpenID Foundation.

This sample application is based on the "example" in the AppAuth reference libraries and will authenticate the user and present the user's subject and tokens on the screen. Options to refresh the OAuth 2.0 access token and to refresh the authentication session are also demonstrated.

Refer to the Mobile Application SSO Developers Guide for more detailed information.

Note: You can get developer licenses and the PingFederate software at https://developer.pingidentity.com/get-started

Installation

This sample application has been built using PingFederate 8.0.1 and the OAuth Playground 3.2. Follow the documentation for PingFederate and the OAuth Playground to quickly stand up an OpenID Connect Provider / OAuth Authorization Server.

You will need

Android Studio & project configuration

  • Open this project (android-appauth-sample-application) in Android Studio
  • Add the AppAuth library for Android project to your XCode project
    • File > Project Structure > '+' > Import Gradle Project (browse to the AppAuth library)
    • Clean up any dependencies (i.e. comment out com.jfrog.bintray if you don't use bintray)
    • Add the library as a dependency (File > Project Structure > app > Dependencies ('+ Module dependency')
  • Modify the MainActivity.java file to define your PingFederate server, your client_id and redirect_uri
  • Modify the strings.xml file to define the redirect scheme for the Intent

PingFederate configuration

  • Install PingFederate and the OAuth Playground (see the readme in the OAuth Playground distribution)
  • Modify the OAuth client "ac_client" in the PingFederate configuration:
    • OAuth Settings -> Client Management -> ac_client
    • Edit the "Redirect URIs" option to include the application callback URI (com.pingidentity.developer.appauth://oidc_callback)

Disclaimer

This software is open sourced by Ping Identity but not supported commercially as such. Any questions/issues/comments should be directed to the "Developer Q&A" group in the Ping Identity Support Communities https://community.pingidentity.com/collaborate.

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.