iFixit / dozuki-ios

GNU General Public License v3.0
0 stars 0 forks source link

🐞 Unable to log in to iOS app #30

Open Airruk opened 6 years ago

Airruk commented 6 years ago

Background

When a user tried to log in to the iOS app, they receive an "Invalid app ID" error.

To reproduce

1) try to log in to any site on the Dozuki iOS app 2) see that you get the above error

To do -- Make it so users are able to log in to the iOS app

Airruk commented 6 years ago

Link to feature: https://dozuki.productboard.com/feature-board/planning/features/1143103

Airruk commented 6 years ago

@bpascazio - any update on this one?

bpascazio commented 6 years ago

When the SSO completes I see this mismatch between the URL returned and what we have configured from our endpoint.

2018-08-29 06:13:41.090000+0700 iFixit[91201:1038229] sso finished loading xnet.hypertherm.com 2018-08-29 06:14:04.392894+0700 iFixit[91201:1038229] hosts are not equal host hyperthermtoolkit.dozuki.com customdomain (null)

bpascazio commented 6 years ago

I tested with the current store version of the Dozuki App in this case

Airruk commented 6 years ago

@bpascazio - this issue isn't specific to a site with SSO - just the general dozuki app on a site like gunnerautomotive that uses the built-in auth.

bpascazio commented 5 years ago

this is the server error, we seem to set the appid just once in dozuki version... should we be fetching this ID or doing something different?

screen shot 2018-11-17 at 9 16 30 am

Airruk commented 5 years ago

pinged @BaseInfinity for some guidance on this

BaseInfinity commented 5 years ago

We load the app id from the plist here: https://github.com/iFixit/iFixit-iOS/blob/c0767c6e612d15414424fd7f8047a4c4128ebd78/Classes/iFixitAPI.m#L37

And that appid must match the app id we have set for either the white label app (like Accustream) or if it's the standard Dozuki app, it should be using the wild card Appid. Looking at the screenshot it looks like we are trying to use Accustream's App Id. The host in that screenshot says gunnerautomotive so I'm guessing you want to be using the "wildcard" App id which is 9c9e0e7ae61d3a70bfe4debb87ad145a