Auth
public class Auth
This class provides methods to connect to and logout from the established session against the server.
-
Information about user
Declaration
Swift
public var user: UserDetail?
-
Connects the session and notify
ClientStateDelegate
when it finishes, onSuccess is called if it’s all OK or onFailure(ErrorType) if an error occurs.Declaration
Swift
public func connect(authentication: WacClient.Authentication, task: @escaping (SippoTask<Bool, SippoClientError>) -> ())
Parameters
authentication
Token authentication, Basic authentication (user/password) or Anonymous.
task
Async result
-
Destroys the session established against the server.
Declaration
Swift
public func logout(task: @escaping (SippoTask<Bool, SippoClientError>) -> ())