Hi @ido - I’m just trying to authenticate users as customers to an organization.
When I try to login or sign up using the Android Setup SDK, I get the following error:
“Organization not found for user’s role”
When I log the request using
http_log_level = true, I see that my organization endpoint is returning a 404. I sent the full request log to @jensck. I can send it to you as well if you give me your email address.
The strange thing is that I am able to register accounts and log in via the iOS setup SDK. And stranger still is that I can login from Android using accounts that were created via the iOS setup SDK.
I suspect that the iOS SDK is not actually using our organization endpoint for the following reasons:
- The successful login request on Android does not contain any information about the organization.
- There are no customers listed on our dashboard.particle.io/xxx/yyy/customers page.
This is the code that I used to set up the iOS SDK for organizations:
[SparkSetupCustomization sharedInstance].organizationName = @"Xxx"; [SparkSetupCustomization sharedInstance].organizationSlug = @"xxx"; [SparkSetupCustomization sharedInstance].productName = @"yyy"; [SparkSetupCustomization sharedInstance].productSlug = @"zzz";
zzz are the values that I found on dashboard.particle.io when following the instructions in the documentation.
So these are the questions that I have:
Are organizations supported on the iOS and Android SDKs, or have I misread the documentation?
If organizations are supported by the SDKs, is my configuration incorrect, or is this a bug?