{"id":20003564,"url":"https://github.com/nathanborror/example-safari-controller","last_synced_at":"2025-06-23T09:32:44.598Z","repository":{"id":66667382,"uuid":"90303089","full_name":"nathanborror/example-safari-controller","owner":"nathanborror","description":"Example using SFSafariViewController to access previously stored cookies on the web","archived":false,"fork":false,"pushed_at":"2017-05-05T22:22:48.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T00:27:02.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathanborror.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-04T19:42:32.000Z","updated_at":"2017-06-12T20:06:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"645bfbae-6d9c-4bba-93d5-5ccff8964fa4","html_url":"https://github.com/nathanborror/example-safari-controller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathanborror/example-safari-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fexample-safari-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fexample-safari-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fexample-safari-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fexample-safari-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanborror","download_url":"https://codeload.github.com/nathanborror/example-safari-controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanborror%2Fexample-safari-controller/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261452915,"owners_count":23160416,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T05:26:13.440Z","updated_at":"2025-06-23T09:32:39.557Z","avatar_url":"https://github.com/nathanborror.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Who Am I\n\nExample using [SFSafariViewController][1] to access previously stored cookies from\nthe Safari web browser. Useful in determining who a new user is after they've\ninstalled your application.\n\nThis technique hides the presentation of the Safari view controller since the URL\nimmediatly redirects back to the app.\n\n## Setup\n\n1. Serve up `index.html` on `http://localhost:8000` using python: `python -m SimpleHTTPServer`\n2. Visit `http://localhost:8000?set=mysecretcookie` to set an initial cookie.\n3. Build and run the app in Xcode and you should see the token populate pretty quickly after loading.\n\n## Research\n\n1. [How iOS 9's Safari View Controller could completely change your app’s onboarding experience][2]\n2. [SFSafariViewController and OAuth – the Instagram example][3]\n3. [Clearing cookies in SFSafariViewController?][4]\n\n[1]:https://developer.apple.com/reference/safariservices/sfsafariviewcontroller\n[2]:https://library.launchkit.io/how-ios-9-s-safari-view-controller-could-completely-change-your-app-s-onboarding-experience-2bcf2305137f\n[3]:http://strawberrycode.com/blog/sfsafariviewcontroller-and-oauth-the-instagram-example/\n[4]:https://forums.developer.apple.com/message/105133#105133\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanborror%2Fexample-safari-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanborror%2Fexample-safari-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanborror%2Fexample-safari-controller/lists"}