Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Last active August 29, 2015 14:13
Show Gist options
  • Save vanderhoop/42a3762a8e2d8ab4c9bf to your computer and use it in GitHub Desktop.
Save vanderhoop/42a3762a8e2d8ab4c9bf to your computer and use it in GitHub Desktop.

OAuth Exploration

We just went step by step through the OAuth workflow for GitHub, but not every provider requires the same params and configuration. Thus, it's important to wrestle with the documentation to find exactly what each service provider requires. And that's exactly what you're going to do now.

Directions

  1. Identify an OAuth2 Provider you have both A) have an account for and B) think you might want to use in a project.
  2. Identify the values (params, headers, and so on) that you'll have to provide the service provider to properly authenticate your users.
  3. Identify values that should be hidden and make them environmental variables.
  4. Implement OAuth, using the github_oauth app as a helpful guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment