<SYAuthProvider> Protocol Reference

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>

Inheritance diagram for <SYAuthProvider>:
Collaboration diagram for <SYAuthProvider>:

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...
 

Detailed Description

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.

Method Documentation

◆ buildHeadersWithCompletion:

- (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.

◆ notifyAuthenticationRejected

- (void) notifyAuthenticationRejected

Notifies that one of Sygic online services has rejected the authentication provided by buildHeaders. The implementation must be thread-safe.


The documentation for this protocol was generated from the following file: