private void BuildCompletedIntent(AuthorizationServiceConfiguration serviceConfiguration) { Intent intent = new Intent(context, typeof(MainActivity)); intent.PutAuthStateExtra(new AuthState()); completedIntent = PendingIntent.GetActivity(context, authorizationRequest.GetHashCode(), intent, 0); }
private PendingIntent CreatePostAuthorizationIntent(Context context, AuthorizationRequest request, AuthorizationServiceDiscovery discoveryDoc) { Intent intent = new Intent(context, typeof(RedirectActivity)); intent.PutExtra(Constants.EXTRA_AUTH_STATE, AuthState.JsonSerializeString()); if (discoveryDoc != null) { intent.PutExtra("authServiceDiscovery", discoveryDoc.DocJson.ToString()); } return(PendingIntent.GetActivity(context, request.GetHashCode(), intent, 0)); }
public static PendingIntent CreatePostAuthorizationIntent(Context context, AuthorizationRequest request, AuthorizationServiceDiscovery discoveryDoc, AuthState authState) { var intent = new Intent(context, typeof(TokenActivity)); intent.PutExtra(EXTRA_AUTH_STATE, authState.JsonSerializeString()); if (discoveryDoc != null) { intent.PutExtra(EXTRA_AUTH_SERVICE_DISCOVERY, discoveryDoc.DocJson.ToString()); } return(PendingIntent.GetActivity(context, request.GetHashCode(), intent, 0)); }
private PendingIntent CreatePostAuthorizationIntent(Context context, AuthorizationRequest request, AuthorizationServiceDiscovery discoveryDoc, AuthState authState) { var intent = new Intent(context, typeof(MainActivity)); intent.PutExtra(Constants.AuthStateKey, authState.JsonSerializeString()); if (discoveryDoc != null) { intent.PutExtra(Constants.AuthServiceDiscoveryKey, discoveryDoc.DocJson.ToString()); } return(PendingIntent.GetActivity(context, request.GetHashCode(), intent, 0)); }
public static PendingIntent CreatePostAuthorizationIntent(Context context, AuthorizationRequest request) { var intent = new Intent(context, typeof(AuthActivity)); return(PendingIntent.GetActivity(context, request.GetHashCode(), intent, 0)); }