Skip to content

Instantly share code, notes, and snippets.

View le4ker's full-sized avatar

Panos Sakkos le4ker

View GitHub Profile
@nderkach
nderkach / ios_github_gif.md
Last active May 13, 2020 08:06
How to record iOS screen and share it on github
View ios_github_gif.md

Record a screencast with QuickTime Player

  1. Connect an iOS defice with a cable
  2. In QuickTime Player: Option-Cmd-N (New Movie Recording) -> Select your device from the recording menu:

http://cl.ly/image/1w0y3Y0H2g2X/record.png

Install gifify

@mziwisky
mziwisky / Oauth2.md
Last active December 5, 2023 10:30
Oauth2 Explanation
View Oauth2.md

OAUTH2

The Problem

I’m a web app that wants to allow other web apps access to my users’ information, but I want to ensure that the user says it’s ok.

The Solution

I can’t trust the other web apps, so I must interact with my users directly. I’ll let them know that the other app is trying to get their info, and ask whether they want to grant that permission. Oauth defines a way to initiate that permission verification from the other app’s site so that the user experience is smooth. If the user grants permission, I issue an AuthToken to the other app which it can use to make requests for that user's info.

Note on encryption

Oauth2 has nothing to do with encryption -- it relies upon SSL to keep things (like the client app’s shared_secret) secure.