Stephan Diederich
9ddcad6da7
only reset validation flag once we actually went to the background
2013-09-24 17:28:53 +02:00
Stephan Diederich
aff8c0a9a9
allow to specify a custom URL scheme
2013-09-24 17:09:15 +02:00
Stephan Diederich
1616403e61
update needsValidation
...
return YES even if already validated but
there's a version mismatch.
2013-09-24 14:05:04 +02:00
Stephan Diederich
c2c6558687
redo BITAuthenticator interface
...
given the good feedback we got, this is take 2
of the BITAuthenticator interface.
It's simplified, cleaned up and now allows full
control over the authentication process.
Major changes:
* manual mode
Authenticator provides the bits to show the
viewController to identify the user as well as to
trigger validation on behalf of the developer.
* process separation
identification and app-usage-restriction are now
2 completely separated things.
* public identifier
Authenticator now allows the developer to query
parts of the information, e.g. the UDID or the user's
emailaddy once identified
2013-09-23 23:15:56 +02:00
ipaterson
df7010ed8a
Fixed recurring typo in manager initializers.
2013-09-23 13:39:59 -04:00
ipaterson
5808e5f799
The kBITAuthenticatorDidSkipOptionalLogin was not being reset upon cleanup because it is stored in NSUserDefaults rather than the keychain.
2013-09-20 13:19:56 -04:00
Stephan Diederich
3c59855edf
show proper error when UDID it not allowed to access
2013-09-20 15:29:40 +02:00
Stephan Diederich
623c81e8d9
use keychain attribute thisDeviceOnly instead of custom validation
...
instead of storing the vendorIdentifier, use the keychain to store
the token on this device only
2013-09-20 15:29:40 +02:00
Stephan Diederich
4ad928683d
fix passed in udid not validated
...
any udid could be passed, so it only
failed on next launch and showed the
view controller again.
2013-09-20 15:29:40 +02:00
Stephan Diederich
9243d012b9
cleanup
...
first authenticate depending on app state,
then register for appState changes.
2013-09-20 15:29:40 +02:00
Stephan Diederich
4ae09c9c4b
allow developer to provide a custom parentViewController
...
instead of doing the presentation ourselves, use the
provided functionality in the HockeyBaseManager.
This also allows developer to provide their own viewController
by implementing
- (UIViewController *)viewControllerForHockeyManager:componentManager:; as
HockeyManager's delegate.
fixes #58
2013-09-19 20:37:02 +02:00
Thomas Dohmke
0d67c5d2cd
bit_appAnonID already checks for the identifierForVendor.
2013-09-17 13:45:06 +02:00
Thomas Dohmke
63882f30c0
Don't use identifierForVendor on iOS 5.
2013-09-17 13:39:56 +02:00
Stephan Diederich
fda20a3716
fix authentication dialog presented when application wakes up in background
...
when startManager is called, it doesn't mean the app is actually active,
e.g. in iOS7 when a background download finished.
So check for active state in startManager and potentially wait for an
didBecomeActive notification.
2013-09-15 20:58:12 +02:00
Stephan Diederich
4ccae96cd9
fix duplicate count of installation
...
even in "optional identification"-mode set the "validated"
flag only once the use either did identify himself or skipped
it.
2013-09-15 18:02:11 +02:00
Stephan Diederich
a4bc855705
cleanup, remove additional early return
2013-09-15 17:57:01 +02:00
Andreas Linde
64a168502e
Move new auth strings into language file
2013-09-12 22:32:44 +02:00
Stephan Diederich
b23d4f3eb4
Merge branch 'feature/#19-verifyBetaUsers' into develop
...
meh, always update before doing work…
Conflicts:
Classes/BITAuthenticator.m
Classes/HockeySDK.h
2013-09-12 22:23:03 +02:00
Stephan Diederich
681c67a9dd
redo authentication response parsing
...
* first check for HTTP Status codes
* then do parsing if it was a 200
* fix typo in error messages
* be more specific about the response
2013-09-12 22:16:44 +02:00
Andreas Linde
d7ae69860d
Various documentation fixes and updates
2013-09-12 12:21:12 +02:00
Andreas Linde
67d56af15d
Fix warnings when building with iOS 7 as deployment target
2013-09-12 11:26:19 +02:00
Andreas Linde
1cb91ae323
Some authenticator string updates
2013-09-11 20:44:34 +02:00
Stephan Diederich
c534e5d566
also reset auth token if authType changed
...
saves us a round-trip when validating, as when
the authType changed, server would return nope.
2013-09-11 16:46:07 +02:00
Stephan Diederich
3a8802aa20
also compare auth type
...
as the authToken changes with the type this should not be
necessary, but for the sake of completeness put it there.
2013-09-11 16:44:28 +02:00
Stephan Diederich
53f851afc5
always provide an error to the viewcontroller
2013-09-11 16:17:20 +02:00
Stephan Diederich
c44c923819
redo auth with user+password
...
* needs to be basic auth
* use base64 encoder from HockeyCoach
2013-09-11 16:17:20 +02:00
Stephan Diederich
3aeeae8e98
add more english localizations
2013-09-11 16:17:20 +02:00
Stephan Diederich
ea5452603b
store the type of the token with the token itself
...
updater needs it as well and we actually don't want to send
the wrong type to the server
2013-09-11 14:52:33 +02:00
Andreas Linde
d93da3ee32
More authenticator integration
...
- Only start the updateManager if the installation is authenticated (not yet tested)
- Provide the installation data to the updateManager requests
- Some more documentation
- Authenticator defaults to BITAuthenticatorAuthTypeUDIDProvider and BITAuthenticatorValidationTypeNever
- Reset usage time if installation identification changes (not yet tested)
2013-09-11 14:05:09 +02:00
Andreas Linde
d9bcfbb88d
Update license headers in new files
2013-09-11 12:57:27 +02:00
Stephan Diederich
148d10896a
update isValid in startManager depending on validationType
2013-09-11 00:10:10 +02:00
Stephan Diederich
30b93a0468
only reauthenticate if validation failed
2013-09-11 00:05:22 +02:00
Stephan Diederich
1938e480cc
fix auth-viewcontroller unusable after failed authentication
2013-09-10 23:57:00 +02:00
Stephan Diederich
34bf1bf611
add flag to tell if app is currently validated
2013-09-10 23:41:48 +02:00
Stephan Diederich
3144247dc9
in "optional"-mode, show authentication exactly once
2013-09-10 23:41:48 +02:00
Stephan Diederich
2886ac4d77
rename skip to cancel
2013-09-10 23:41:48 +02:00
Stephan Diederich
e3dcfa629f
don't register twice
2013-09-10 23:41:48 +02:00
Stephan Diederich
ebbe6dc0af
use helper method from BITHelpers instead of home-brewed solution
2013-09-10 23:41:48 +02:00
Stephan Diederich
3c9e84f85b
add missing call of completion block & comment
...
thanks @therealkerni
2013-09-09 02:21:12 +02:00
Stephan Diederich
7c2e2b88a0
bail if secret is missing and we're trying to authenticate
2013-09-09 02:16:58 +02:00
Stephan Diederich
c72fa30108
allow customization of UDID provider webpageURL
...
and don't mix up SDK and webpage endpoints, but use
the right one for each job
2013-09-07 22:20:34 +02:00
Stephan Diederich
1504b2d9d9
rename auth type to UDIDProvider
...
naming can be hard - thanks @therealkerni
2013-09-07 22:19:38 +02:00
Stephan Diederich
2d97ac7cf7
reset auth-token if identifierForVendor changed
2013-09-07 19:01:17 +02:00
Stephan Diederich
41d7a0da6a
add udid auth via safari roundtrip
2013-09-07 18:10:57 +02:00
Stephan Diederich
567b0def60
refactoring: move auth-logic to the authenticator
...
via a delegation-completionBlock-combo
2013-09-06 19:23:58 +02:00
Stephan Diederich
79df67ec4a
disable authenticator when running the appStore version
2013-09-06 18:03:04 +02:00
Stephan Diederich
e784213184
cleanup Authenticator interface
...
* remove additional delegate methods
* remove validation/authentication calls from public interface
2013-09-06 18:01:29 +02:00
Stephan Diederich
6f64b8e5d6
make installationIdentification KVO'able
2013-09-06 17:24:01 +02:00
Stephan Diederich
96304ac639
factor out BITHockeyAppClient to provide network services
...
* factor out HockeyAppClient
* configure Authenticator with HockeyAppClient
* move appendPostValue to HockeyAppClient (& add the missing boundary parameter)
* move tests over to new file
2013-09-06 17:11:55 +02:00
Stephan Diederich
4f6f871bf3
add authenticator to the HockeyManager
...
& make protocol methods optional
2013-08-15 22:38:24 +02:00