Documentation for MapLib/Auth.swift¶
Class for holding library authentication
- init()¶
Class constructor
- Parameters
url – The http request starting from this url will be authenticated.
clientId – client Id for oAuth2 protocol.
authServerUrl – Authentication server url. The update request will use this url.
accessToken – Access token for oAuth2.
updateToken – Update token for oAuth2.
expiresIn – The token expires period.
callback – function executes if update failed. The function must be like prototype function tokenUpdateFailedCallback.
- func getURL() String ¶
The http request starting from this url will be authenticated
- Returns
url string
- func options() [String: String] ¶
Get current authentication options. If some options chaned via interaction with authentication server, this function returns actual values.
- Returns
key-value dictionary of options