Last active
August 29, 2015 14:18
-
-
Save ricalo/fc17236f0cea3df807c0 to your computer and use it in GitHub Desktop.
Implementation of the onActivityResult method required if you use ADAL's acquireToken with a signature that receives an activity as a parameter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This activity gets notified about the completion of the ADAL activity through this method. | |
* @param requestCode The integer request code originally supplied to startActivityForResult(), | |
* allowing you to identify who this result came from. | |
* @param resultCode The integer result code returned by the child activity through its | |
* setResult(). | |
* @param data An Intent, which can return result data to the caller (various data | |
* can be attached to Intent "extras"). | |
*/ | |
@Override | |
protected void onActivityResult(int requestCode, int resultCode, Intent data) { | |
Log.i(TAG, "onActivityResult - AuthenticationActivity has come back with results"); | |
super.onActivityResult(requestCode, resultCode, data); | |
AuthenticationController | |
.getInstance() | |
.getAuthenticationContext() | |
.onActivityResult(requestCode, resultCode, data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment