Please let me elaborate what I am trying to do.
What I want to do?
I am creating a cocoa application that uploads an user files to user's Onedrive and in order to do that I am requesting for an Access token by launching the access token URL in Safari.
Problem
Now the problem is how will I retrieve the access token from safari to my cocoa app?
In short: How to get one drive access token in Cocoa Application?
Please help. Many thanks