amazon-archives / aws-sdk-xamarin

AWS Mobile SDK for Xamarin (Beta)
Apache License 2.0
45 stars 18 forks source link

AWSCognitoIdentityProvider #10

Closed cagatayozgur closed 9 years ago

cagatayozgur commented 10 years ago

The post located here: http://mobile.awsblog.com/post/Tx2FL1QAPDE0UAH/Understanding-Amazon-Cognito-Authentication-Part-2-Developer-Authenticated-Ident

mentions the following: The AWS Mobile SDK has been updated to support this flow via the use of a new interface called AWSCognitoIdentityProvider. See the Developer Guides (iOS|Android) for information on implementing these providers.

Is this already available? If not, is it planned in the upcoming iterations?

Thanks in advance

Chad

tawalke commented 10 years ago

Cognito Identity is currently supported within the Xamarin SDK. Is there something that you don't see within this workflow that you are looking for?

Please advise.

-Tara

Sent from Windows Mail

From: Chad Ozgur Sent: ‎Tuesday‎, ‎November‎ ‎25‎, ‎2014 ‎3‎:‎15‎ ‎PM To: 'awslabs/aws-sdk-xamarin'

The post located here: http://mobile.awsblog.com/post/Tx2FL1QAPDE0UAH/Understanding-Amazon-Cognito-Authentication-Part-2-Developer-Authenticated-Ident

mentions the following: The AWS Mobile SDK has been updated to support this flow via the use of a new interface called AWSCognitoIdentityProvider. See the Developer Guides (iOS|Android) for information on implementing these providers.

Is this already available? If not, is it planned in the upcoming iterations?

Thanks in advance

Chad

— Reply to this email directly or view it on GitHub.

cagatayozgur commented 10 years ago

Yes, according to the article in the above link. One needs to implement AWSCognitoIdentityProvider for developer authenticated cognitoID's I was unable to find the corresponding classes in the Xamarin version of the SDK

Thanks!

tawalke commented 10 years ago

You are looking for CognitoAWSCredentials or AmazonCognitoClient or CognitoSyncClient in Xamarin SDK to represent the AWSCognitoIdentityProvider.

The example of this being implemented is closer to the .NET SDK implementation and an example can be shown here:

http://blogs.aws.amazon.com/net/post/Tx3SGY7XYJ5KZRK/Amazon-Cognito-Credentials-Provider

Given your question, please advise what examples, walkthroughs, and sample code for the SDK you would like to be posted to help with your development.

Thanks,

Tara

Sent from Windows Mail

From: Chad Ozgur Sent: ‎Tuesday‎, ‎November‎ ‎25‎, ‎2014 ‎5‎:‎42‎ ‎PM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

Yes, according to the article in the above link. One needs to implement AWSCognitoIdentityProvider for developer authenticated cognitoID's I was unable to find the corresponding classes in the Xamarin version of the SDK

Thanks!

— Reply to this email directly or view it on GitHub.

cagatayozgur commented 10 years ago

Thanks for the above Tara, will look into it on Monday and provide feedback.

In terms of examples and walkthroughs, a small tutorial explaining how to implement how to obtain temporary aws credentials using developer authenticated identities, and how to implement cognito sync would be very helpful.

Thanks!

Chad

cagatayozgur commented 10 years ago

Just tried the example in the blogpost, my code looks like this: CognitoAWSCredentials credentials; credentials = new CognitoAWSCredentials(MPAccount.AWSACCTID, MPAccount.IDENTITYPOOL, MPAccount.UNAUTHROLE, MPAccount.AUTHROLE,RegionEndpoint.USEast1); credentials.AddLogin (MPAccount.IDPROVIDERDOMAIN,this.CognitoToken); credentials.IdentityChangedEvent += (object sender, CognitoAWSCredentials.IdentityChangedArgs e) => Console.WriteLine ("Identity changed: [{0}] => [{1}]", e.OldIdentityId, e.NewIdentityId); var tc = credentials.GetCredentials ();

in the addlogin, I'm passing the developer provider name, and the token I get from GetOpenIdTokenForDeveloperIdentity() function on the server side code.

When I run the code, I get the exception below:

does that mean CognitoAWSCredentials is only available to Public providers and cannot be used with developer authenticated ID's? If so, what's the right way to implement temporary credentials with dev. auth?

Appreciate any pointers.

Best

Chad

[0] {Amazon.CognitoIdentity.Model.InvalidParameterException: Please provide a valid public provider ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage+casync0.MoveNext () [0x000b9] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/HttpHandler/HttpRequestMessageFactory.cs:248 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.Runtime.Internal.Transform.IWebResponseData].GetResult () [0x00000] in <filename unknown>:0 at Amazon.Runtime.Internal.HttpHandler1+c__async01[System.Net.Http.HttpContent,Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0015b] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/HttpHandler/HttpHandler.cs:121 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.Unmarshaller+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00021] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/Unmarshaller.cs:67 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.ErrorHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/ErrorHandler.cs:97 --- End of inner exception stack trace --- at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException (IExecutionContext executionContext, Amazon.Runtime.Internal.HttpErrorResponseException exception) [0x00157] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/HttpErrorResponseExceptionHandler.cs:100 at Amazon.Runtime.Internal.ExceptionHandler1[Amazon.Runtime.Internal.HttpErrorResponseException].Handle (IExecutionContext executionContext, System.Exception exception) [0x00000] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/ExceptionHandler.cs:38 at Amazon.Runtime.Internal.ErrorHandler.ProcessException (IExecutionContext executionContext, System.Exception exception) [0x0005f] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/ErrorHandler.cs:202 at Amazon.Runtime.Internal.ErrorHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x000aa] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/ErrorHandler.cs:102 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+c__async01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.RetryHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0005b] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/RetryHandler/RetryHandler.cs:106 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+c__async01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+c__async01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericExceptionHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericExceptionHandler.cs:40 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.MetricsHandler+c__async01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00067] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/MetricsHandler.cs:65 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter1[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.Util.AsyncHelpers+cAnonStorey5`1+casync4[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Internal/Util/AsyncHelpers.cs:66 } Amazon.CognitoIdentity.Model.InvalidParameterException

tawalke commented 10 years ago

Chad:

Let me take a look at your code and do some tests, and provide feedback on my findings.

Thanks,

TEW

Sent from Windows Mail

From: Chad Ozgur Sent: ‎Sunday‎, ‎November‎ ‎30‎, ‎2014 ‎11‎:‎28‎ ‎AM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

Just tried the example in the blogpost, my code looks like this: CognitoAWSCredentials credentials; credentials = new CognitoAWSCredentials(MPAccount.AWSACCTID, MPAccount.IDENTITYPOOL, MPAccount.UNAUTHROLE, MPAccount.AUTHROLE,RegionEndpoint.USEast1); credentials.AddLogin (MPAccount.IDPROVIDERDOMAIN,this.CognitoToken); credentials.IdentityChangedEvent += (object sender, CognitoAWSCredentials.IdentityChangedArgs e) => Console.WriteLine ("Identity changed: [{0}] => [{1}]", e.OldIdentityId, e.NewIdentityId); var tc = credentials.GetCredentials ();

in the addlogin, I'm passing the developer provider name, and the token I get from GetOpenIdTokenForDeveloperIdentity() function on the server side code.

When I run the code, I get the exception below:

does that mean CognitoAWSCredentials is only available to Public providers and cannot be used with developer authenticated ID's? If so, what's the right way to implement temporary credentials with dev. auth?

Appreciate any pointers.

Best

Chad

[0] {Amazon.CognitoIdentity.Model.InvalidParameterException: Please provide a valid public provider ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage+casync0.MoveNext () [0x000b9] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/HttpHandler/HttpRequestMessageFactory.cs:248 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.Runtime.Internal.Transform.IWebResponseData].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.HttpHandler1+c__async01[System.Net.Http.HttpContent,Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0015b] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/HttpHandler/HttpHandler.cs:121 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.Unmarshaller+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00021] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/Unmarshaller.cs:67 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.Config uredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.ErrorHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/ErrorHandler.cs:97 --- End of inner exception stack trace --- at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException (IExecutionContext executionContext, Amazon.Runtime.Internal.HttpErrorResponseException exception) [0x00157] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/HttpErrorResponseExceptionHandler.cs:100 at Amazon.Runtime.Internal.ExceptionHandler1[Amazon.Runtime.Internal.HttpErrorResponseException].Handle (IExecutionContext executionContext, System.Exception exception) [0x00000] in /Users/cha d/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/ExceptionHandler.cs:38 at Amazon.Runtime.Internal.ErrorHandler.ProcessException (IExecutionContext executionContext, System.Exception exception) [0x0005f] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/ErrorHandler.cs:202 at Amazon.Runtime.Internal.ErrorHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x000aa] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/ErrorHandler/ErrorHandler.cs:102 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Mod el.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+c__async01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where e xception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.RetryHandler+casync01[Amazon.CognitoI dentity.Model.GetIdResponse].MoveNext () [0x0005b] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/RetryHandler/RetryHandler.cs:106 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+c__async01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.Xama rinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericHandler+c__async01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericHandler.cs:51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIden tity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.GenericExceptionHandler+casync01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/GenericExceptionHandler.cs:40 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.MetricsHandler+c__async01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00067] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Pipeline/Handlers/MetricsHandler.cs:65 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0 at System.Runtime.CompilerServices.TaskAwaiter1[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 at Amazon.Runtime.Internal.Util.AsyncHelpers+cAnonStorey5`1+casync4[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00032] in /Users/chad/Dropbox/Projects/awslabs/aws-sdk-xamarin.git/AWS.XamarinSDK/AWSSDK_Android/Amazon.Runtime/Internal/Util/AsyncHelpers.cs:66 } Amazon.CognitoIdentity.Model.InvalidParameterException

— Reply to this email directly or view it on GitHub.

cagatayozgur commented 10 years ago

And here's the server side code that gets the token and user id. Wanted to share just in case.

             var cognitoClient = new AmazonCognitoIdentityClient(AWSKEY, AWSSecret, RegionEndpoint.USEast1) ;
            Dictionary<string, string> logins = new Dictionary<string, string>();
            logins.Add(MPAccount.IDPROVIDERDOMAIN, theUser.Email);
            var idRequest = new GetOpenIdTokenForDeveloperIdentityRequest();
            idRequest.IdentityPoolId = MPAccount.IDENTITYPOOL;
            idRequest.Logins = logins;
            var idresp = cognitoClient.GetOpenIdTokenForDeveloperIdentity(idRequest);
            theUser.UserID = idresp.IdentityId;
            theUser.CognitoToken = idresp.Token;
tawalke commented 10 years ago

Thanks, I will try to emulate this as well.

Sent from my Windows Phone


From: Chad Ozgurmailto:notifications@github.com Sent: ‎12/‎1/‎2014 10:41 AM To: awslabs/aws-sdk-xamarinmailto:aws-sdk-xamarin@noreply.github.com Cc: tawalkemailto:taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

And here's the server side code that gets the token and user id. Wanted to share just in case.

             var cognitoClient = new AmazonCognitoIdentityClient(AWSKEY, AWSSecret, RegionEndpoint.USEast1) ;
            Dictionary<string, string> logins = new Dictionary<string, string>();
            logins.Add(MPAccount.IDPROVIDERDOMAIN, theUser.Email);
            var idRequest = new GetOpenIdTokenForDeveloperIdentityRequest();
            idRequest.IdentityPoolId = MPAccount.IDENTITYPOOL;
            idRequest.Logins = logins;
            var idresp = cognitoClient.GetOpenIdTokenForDeveloperIdentity(idRequest);
            theUser.UserID = idresp.IdentityId;
            theUser.CognitoToken = idresp.Token;

Reply to this email directly or view it on GitHub: https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-65082580

scolestock commented 9 years ago

Any update on this ? Just curious how mature the Cognito support in the Xamarin toolkit is at this point.

cagatayozgur commented 9 years ago

I was able to trace the mentioned crash up to the actual server call to the amazon API but then the trail goes cold so to speak. Waiting on tawalke to shed some light to the issue.

tawalke commented 9 years ago

I am looking into it, trying to trace the issue as I don't have the same. I have completed a new version of the SDK beta which is in testing that should be released shortly which may or may not address this issue.

Stay tuned please, this is the reason for betas so that we can enhance and develop better experiences for you.

Thanks, Tara

Date: Fri, 12 Dec 2014 08:58:21 -0800 From: notifications@github.com To: aws-sdk-xamarin@noreply.github.com CC: taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

I was able to trace the mentioned crash up to the actual server call to the amazon API but then the trail goes cold so to speak.

Waiting on tawalke to shed some light to the issue.

— Reply to this email directly or view it on GitHub.

                  =
cagatayozgur commented 9 years ago

Thanks Tara! Looking forward to implementing

Best

c

tawalke commented 9 years ago

Hi @cagatayozgur : The SDK has been updated today, please re-test your code and advise if you are still having issues.

cagatayozgur commented 9 years ago

Thanks!

will do asap

best,

c

On Tue, Dec 16, 2014 at 5:09 PM, tawalke notifications@github.com wrote:

Hi @cagatayozgur https://github.com/cagatayozgur : The SDK has been updated today, please re-test your code and advise if you are still having issues.

— Reply to this email directly or view it on GitHub https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-67241820 .

Thanks And Regards

Chad Ozgur

Creative Technology www.wildcardnewyork.com cagatay@wildcardnewyork.com

115 East 23rd Street 10010 New York NY

+1 888 729 0464

tawalke commented 9 years ago

@scolestock : The SDK was updated to v2 as of today, please review and advise regarding the Cognito support desired in the SDK

cagatayozgur commented 9 years ago

Hi Tara,

Updated the SDK to the latest version built for Release and referenced the dll and ran the below code:

private void getTemporaryCreds () { CognitoAWSCredentials CP = null; try { CP = new CognitoAWSCredentials (MPAccount.AWSACCTID, MPAccount.IDENTITYPOOL, MPAccount.UNAUTHROLE, MPAccount.AUTHROLE, RegionEndpoint.USEast1); } catch (Exception ex) { Console.WriteLine (ex.Message); } try { CP.AddLogin (MPAccount.IDPROVIDERDOMAIN, this.CognitoToken); var creds = CP.GetCredentials (); } catch (Exception ex) { Console.WriteLine (ex.Message); Console.WriteLine (ex.InnerException.Message); } Console.WriteLine (); try { AmazonS3Client z = new AmazonS3Client (CP); GetPreSignedUrlRequest PSUR = new GetPreSignedUrlRequest (); PSUR.BucketName = "trackjson"; PSUR.Key = "711755.json"; PSUR.Expires = DateTime.Now.AddMinutes (15); PSUR.Verb = HttpVerb.GET; var retval = z.GetPreSignedURL (PSUR);
} catch (Exception ex2) { Console.WriteLine (ex2.Message); Console.WriteLine (ex2.InnerException.Message); } }

I get 2 exceptions here:

the first one says:Please provide a valid public provider, when I call CP.GetCredentials the second one says: No RegionEndpoint or ServiceURL configured, when I try to instantiate a AmazonS3Client using the CP object.

Please advise.

Best

Chad

tawalke commented 9 years ago

Hi Chad:

You updated the SDK to the last commit correct? The RegionEndpoint issue was changed right after the SDK release and an that specific error was addressed.

I will have to look into the other issue you noted. The latest release adds full support for OpenID.

Thanks,

TEW

Sent from Windows Mail

From: Chad Ozgur Sent: ‎Wednesday‎, ‎December‎ ‎24‎, ‎2014 ‎12‎:‎16‎ ‎PM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

Hi Tara,

Updated the SDK to the latest version built for Release and referenced the dll and ran the below code:

private void getTemporaryCreds () { CognitoAWSCredentials CP = null; try { CP = new CognitoAWSCredentials (MPAccount.AWSACCTID, MPAccount.IDENTITYPOOL, MPAccount.UNAUTHROLE, MPAccount.AUTHROLE, RegionEndpoint.USEast1); } catch (Exception ex) { Console.WriteLine (ex.Message); } try { CP.AddLogin (MPAccount.IDPROVIDERDOMAIN, this.CognitoToken); var creds = CP.GetCredentials (); } catch (Exception ex) { Console.WriteLine (ex.Message); Console.WriteLine (ex.InnerException.Message); } Console.WriteLine (); try { AmazonS3Client z = new AmazonS3Client (CP); GetPreSignedUrlRequest PSUR = new GetPreSignedUrlRequest (); PSUR.BucketName = "trackjson"; PSUR.Key = "711755.json"; PSUR.Expires = DateTime.Now.AddMinutes (15); PSUR.Verb = HttpVerb.GET; var retval = z.GetPreSignedURL (PSUR);

} catch (Exception ex2) { Console.WriteLine (ex2.Message); Console.WriteLine (ex2.InnerException.Message); } }

I get 2 exceptions here:

the first one says:Please provide a valid public provider, when I call CP.GetCredentials the second one says: No RegionEndpoint or ServiceURL configured, when I try to instantiate a AmazonS3Client using the CP object.

Please advise.

Best

Chad

— Reply to this email directly or view it on GitHub.

cagatayozgur commented 9 years ago

No to the commit dated when you first announced the push. Will update and try again now.

Sent from my iPhone

On Dec 24, 2014, at 1:41 PM, tawalke notifications@github.com wrote:

Hi Chad:

You updated the SDK to the last commit correct? The RegionEndpoint issue was changed right after the SDK release and an that specific error was addressed.

I will have to look into the other issue you noted. The latest release adds full support for OpenID.

Thanks,

TEW

Sent from Windows Mail

From: Chad Ozgur Sent: ‎Wednesday‎, ‎December‎ ‎24‎, ‎2014 ‎12‎:‎16‎ ‎PM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

Hi Tara,

Updated the SDK to the latest version built for Release and referenced the dll and ran the below code:

private void getTemporaryCreds () { CognitoAWSCredentials CP = null; try { CP = new CognitoAWSCredentials (MPAccount.AWSACCTID, MPAccount.IDENTITYPOOL, MPAccount.UNAUTHROLE, MPAccount.AUTHROLE, RegionEndpoint.USEast1); } catch (Exception ex) { Console.WriteLine (ex.Message); } try { CP.AddLogin (MPAccount.IDPROVIDERDOMAIN, this.CognitoToken); var creds = CP.GetCredentials (); } catch (Exception ex) { Console.WriteLine (ex.Message); Console.WriteLine (ex.InnerException.Message); } Console.WriteLine (); try { AmazonS3Client z = new AmazonS3Client (CP); GetPreSignedUrlRequest PSUR = new GetPreSignedUrlRequest (); PSUR.BucketName = "trackjson"; PSUR.Key = "711755.json"; PSUR.Expires = DateTime.Now.AddMinutes (15); PSUR.Verb = HttpVerb.GET; var retval = z.GetPreSignedURL (PSUR);

} catch (Exception ex2) { Console.WriteLine (ex2.Message); Console.WriteLine (ex2.InnerException.Message); } }

I get 2 exceptions here:

the first one says:Please provide a valid public provider, when I call CP.GetCredentials the second one says: No RegionEndpoint or ServiceURL configured, when I try to instantiate a AmazonS3Client using the CP object.

Please advise.

Best

Chad

— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.

cagatayozgur commented 9 years ago

Just updated to the latest version and tried again. Same outcome.

Please advise.

Chad

cagatayozgur commented 9 years ago

Btw, AWSSDK_Core does not compile (gives around 12 errors) on Xamarin Studio. AWSSDK_Android and AWSSDK_iOS compiles. I wonder if that can be causing the issue to still persist. I will try to compile in VS2013

tawalke commented 9 years ago

The AWSSDK_Core should compile, the NuGet package for resulting .dll is also available. Let me know the result.

Sent from Windows Mail

From: Chad Ozgur Sent: ‎Wednesday‎, ‎December‎ ‎24‎, ‎2014 ‎3‎:‎19‎ ‎PM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

Btw, AWSSDK_Core does not compile (gives around 12 errors) on Xamarin Studio. AWSSDK_Android and AWSSDK_iOS compiles. I wonder if that can be causing the issue to still persist. I will try to compile in VS2013

— Reply to this email directly or view it on GitHub.

cagatayozgur commented 9 years ago

That's a negative :(

screen shot 2014-12-24 at 3 27 12 pm

same 12 errors both on Xamarin Studio and VS2013

what's the nuget package name?

cagatayozgur commented 9 years ago

https://www.nuget.org/packages/AWS-Mobile-SDK-Xamarin-Beta/

This one i believe?

will try now.

cagatayozgur commented 9 years ago

Tried with the nuget package now, same result.

tawalke commented 9 years ago

Okay, I will review and test your initial issue after the holiday.

Regarding compile of the AWSSDK_Core, did you do a NuGet restore. It has some dependencies there and also in the package folder provided there is a .dll reference needed.

Please advise.

Sent from my Windows Phone


From: Chad Ozgurmailto:notifications@github.com Sent: ‎12/‎24/‎2014 3:37 PM To: awslabs/aws-sdk-xamarinmailto:aws-sdk-xamarin@noreply.github.com Cc: tawalkemailto:taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

Tried with the nuget package now, same result.


Reply to this email directly or view it on GitHub: https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-68073343

cagatayozgur commented 9 years ago

Thanks Tara! Happy holidays!

Regarding the AWSSDK_Core, yes i did a nuget update/restore. Still cant find System.Security.Cryptography namespace and related elements.

Best

Chad

cagatayozgur commented 9 years ago

Actually: screen shot 2014-12-24 at 4 09 39 pm this is how I see it

tawalke commented 9 years ago

That .dll should be in the packages folder, if not let me know.

Either way, I will look into your error.

Sent from my Windows Phone


From: Chad Ozgurmailto:notifications@github.com Sent: ‎12/‎24/‎2014 4:10 PM To: awslabs/aws-sdk-xamarinmailto:aws-sdk-xamarin@noreply.github.com Cc: tawalkemailto:taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

Actually: screen shot 2014-12-24 at 4 09 39 pm this is how I see it


Reply to this email directly or view it on GitHub: https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-68074419

tawalke commented 9 years ago

Happy Holidays to you too!

Sent from my Windows Phone


From: Chad Ozgurmailto:notifications@github.com Sent: ‎12/‎24/‎2014 4:10 PM To: awslabs/aws-sdk-xamarinmailto:aws-sdk-xamarin@noreply.github.com Cc: tawalkemailto:taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

Actually: screen shot 2014-12-24 at 4 09 39 pm this is how I see it


Reply to this email directly or view it on GitHub: https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-68074419

cagatayozgur commented 9 years ago

Nope, not in that folder. There's the BCL stuff, .netHttp and PCLStorage but no Portable.Security.Cyrptography dll.

Chad

On Wed, Dec 24, 2014 at 6:22 PM, tawalke notifications@github.com wrote:

Happy Holidays to you too!

Sent from my Windows Phone


From: Chad Ozgurmailto:notifications@github.com Sent: ‎12/‎24/‎2014 4:10 PM To: awslabs/aws-sdk-xamarinmailto:aws-sdk-xamarin@noreply.github.com Cc: tawalkemailto:taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

Actually: screen shot 2014-12-24 at 4 09 39 pm

this is how I see it


Reply to this email directly or view it on GitHub: https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-68074419

— Reply to this email directly or view it on GitHub https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-68078348 .

Thanks And Regards

Chad Ozgur

Creative Technology www.wildcardnewyork.com cagatay@wildcardnewyork.com

115 East 23rd Street 10010 New York NY

+1 888 729 0464

cagatayozgur commented 9 years ago

Hi Tara,

Did you have a chance to look into this?

Best

c

tawalke commented 9 years ago

Yes I did. I’m working on a new release to correct some of the issues. My goal is to be complete by next week or sooner.

Sent from Windows Mail

From: Chad Ozgur Sent: ‎Thursday‎, ‎January‎ ‎15‎, ‎2015 ‎8‎:‎22‎ ‎PM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

Hi Tara,

Did you have a chance to look into this?

Best

c

— Reply to this email directly or view it on GitHub.

cagatayozgur commented 9 years ago

Awesome, can't wait for the next release.

Thanks!

C

cagatayozgur commented 9 years ago

Hi Tara,

Any update on this project?

Best

c

tawalke commented 9 years ago

Hi Chad, this was updated at the end of January. Were you able to try the new release?

Sent from my Windows Phone


From: Chad Ozgurmailto:notifications@github.com Sent: ‎2/‎23/‎2015 10:02 PM To: awslabs/aws-sdk-xamarinmailto:aws-sdk-xamarin@noreply.github.com Cc: tawalkemailto:taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

Hi Tara,

Any update on this project?

Best

c


Reply to this email directly or view it on GitHub: https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-75690147

cagatayozgur commented 9 years ago

Yeah, I realized after I posted the message. The nuget version did not work for me, also the source refused to compile due to various reasons. So I went ahead with the compiled binaries. I will test today and report back. First thing I realized, using the unifiedAPI dll, dynamoDB context.createBatchWrite causes the UI to hang and app to crash in 10-15 seconds. Creating and amazons3Client with credentials from federatated login, causes a "parameter cannot be null. Stream" error. I wasn't able to observe any of the above with the classic API version.

Best

c

On Tue, Feb 24, 2015 at 3:23 AM, tawalke notifications@github.com wrote:

Hi Chad, this was updated at the end of January. Were you able to try the new release?

Sent from my Windows Phone


From: Chad Ozgurmailto:notifications@github.com Sent: ‎2/‎23/‎2015 10:02 PM To: awslabs/aws-sdk-xamarinmailto:aws-sdk-xamarin@noreply.github.com Cc: tawalkemailto:taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

Hi Tara,

Any update on this project?

Best

c


Reply to this email directly or view it on GitHub: https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-75690147

— Reply to this email directly or view it on GitHub https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-75716336 .

Thanks And Regards

Chad Ozgur

Creative Technology www.wildcardnewyork.com cagatay@wildcardnewyork.com

115 East 23rd Street 10010 New York NY

+1 888 729 0464

tawalke commented 9 years ago

Thanks Chad. I have been testing the Unified API dll, and it is behaving differently on different machines. I am working on the next release so I will make a decision by the end of next week on whether to re-architect the Unified for the next release or if current release just needs tweaks.

-Tara

Sent from Windows Mail

From: Chad Ozgur Sent: ‎Tuesday‎, ‎February‎ ‎24‎, ‎2015 ‎8‎:‎39‎ ‎AM To: 'awslabs/aws-sdk-xamarin' Cc: Tara Walker

Yeah, I realized after I posted the message. The nuget version did not work for me, also the source refused to compile due to various reasons. So I went ahead with the compiled binaries. I will test today and report back. First thing I realized, using the unifiedAPI dll, dynamoDB context.createBatchWrite causes the UI to hang and app to crash in 10-15 seconds. Creating and amazons3Client with credentials from federatated login, causes a "parameter cannot be null. Stream" error. I wasn't able to observe any of the above with the classic API version.

Best

c

On Tue, Feb 24, 2015 at 3:23 AM, tawalke notifications@github.com wrote:

Hi Chad, this was updated at the end of January. Were you able to try the new release?

Sent from my Windows Phone


From: Chad Ozgurmailto:notifications@github.com Sent: ‎2/‎23/‎2015 10:02 PM To: awslabs/aws-sdk-xamarinmailto:aws-sdk-xamarin@noreply.github.com Cc: tawalkemailto:taraew@live.com Subject: Re: [aws-sdk-xamarin] AWSCognitoIdentityProvider (#10)

Hi Tara,

Any update on this project?

Best

c


Reply to this email directly or view it on GitHub: https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-75690147

— Reply to this email directly or view it on GitHub https://github.com/awslabs/aws-sdk-xamarin/issues/10#issuecomment-75716336 .

Thanks And Regards

Chad Ozgur

Creative Technology www.wildcardnewyork.com cagatay@wildcardnewyork.com

115 East 23rd Street 10010 New York NY

+1 888 729 0464

— Reply to this email directly or view it on GitHub.

tawalke commented 9 years ago

@cagatayozgur : If you compile the Unified project from source (latest), you should have no more problems. The NuGet package is loading the iOS Classic assembly, and a new package will be created and updated so that this does not occur. To compile ensure that you have the compilation directives from the debug view of solution in the release version prior to compile.