Google Oauth redirect to ios custom url -


goal: complete oauth2 google in ios application.

i using phonegap launching oauth in browser. want redirect custom url app can store token. have read this post on how handle redirect still confused. custom url should enter in info.plist? redirect pass oauth page?

var redirect_url='com.example.myapp:/oauth2callback' var url="https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=" + client_id + "&state=" + state + "&redirect_uri="+redirect_url+"&scope=" + scope; 

anyone experienced this?

turns out above code correct. issue setting custom url scheme in info.plist. url scheme needs bundle id only(i.e. com.example.myexample). had ':/oauth2callback' appended end of it, incorrect.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -