                         "Content-Type": "application/x-www-form-urlencoded",
                         "Accept": "application/json"
                     ]
-                    let url = URL(string: self.baseURL + "/oauth/access_token")
+                    let url = URL(string: self.baseURL + self.accessTokenPath)
                     var request = URLRequest(url: url!, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 60.0)
                     request.allHTTPHeaderFields = headers
                     request.httpMethod = "POST"

public protocol CLOAuthViewControllerDelegate: class {

    func oauthSuccess(_ viewController: CLOAuthViewController, accessToken: String)
    func oauthFail(_ viewController:CLOAuthViewController, error: NSError?)
}

open class CLOAuthViewController: UIViewController, WKNavigationDelegate, URLSessionDelegate {

    var webView: WKWebView?

    let baseURL: String
    let authorizePath: String
    let accessTokenPath: String
    let clientId: String
    let clientSecret: String
    let scope: String
