Authentication provider is used for network communication with Sygic online services. It's responsible for providing authentication headers for HTTP requests. We recommend to use SygicAuth framework for implementation. See also: SYContextInitRequest.authProvider. More...
#import <SYAuthProvider.h>
Instance Methods | |
(void) | - buildHeadersWithCompletion: |
Has to provide authentication headers for Sygic online services. Typically, SygicMaps SDK calls this method every time when preparing a new NSURLRequest for any Sygic online service. The implementation must be thread-safe. Completion must be called with either headers or error when the operation is finished, it can be called synchronously or asynchronously on any thread. More... | |
(void) | - notifyAuthenticationRejected |
Notifies that one of Sygic online services has rejected the authentication provided by buildHeaders. The implementation must be thread-safe. More... | |
Authentication provider is used for network communication with Sygic online services. It's responsible for providing authentication headers for HTTP requests. We recommend to use SygicAuth framework for implementation. See also: SYContextInitRequest.authProvider.
- (void) buildHeadersWithCompletion: | (nonnull SYOnlineBuildHeadersCompletionBlock) | completion |
Has to provide authentication headers for Sygic online services. Typically, SygicMaps SDK calls this method every time when preparing a new NSURLRequest for any Sygic online service. The implementation must be thread-safe. Completion must be called with either headers or error when the operation is finished, it can be called synchronously or asynchronously on any thread.
- (void) notifyAuthenticationRejected |
Notifies that one of Sygic online services has rejected the authentication provided by buildHeaders. The implementation must be thread-safe.