ios - Linkedin OAuth2 Redirect_uri not being called -


i'm using linkedin oauth2 in ios app. since yesterday, i'm unable intercept linkedin redirect_uri in webview delegate method.

before yesterday, worked perfectly.

on android works perfectly.

here's code generates urlrequest

let responsetype = "code" let redirecturl = "here's redirect code".addingpercentencoding(withallowedcharacters:nscharacterset.alphanumerics)! let state = "linkedin\(int(nsdate().timeintervalsince1970))" let scope = "r_emailaddress" var authorizationurl = "\(authorizationendpoint)?" authorizationurl += "response_type=\(responsetype)&" authorizationurl += "client_id=\(linkedinkey)&" authorizationurl += "redirect_uri=\(redirecturl)&" authorizationurl += "state=\(state)&" authorizationurl += "scope=\(scope)" let request = urlrequest(url: url(string: authorizationurl)!) webview.loadrequest((request nsurlrequest) urlrequest)


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -