• Stars
    star
    150
  • Rank 247,323 (Top 5 %)
  • Language
    Elixir
  • License
    MIT License
  • Created about 10 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Authenticate with GitHub via OAuth2

OAuth2/Phoenix Example Application

This is an example application showing how one can integrate with the OAuth2 library and the Phoenix framework.

Alt text

To start the application:

  1. Register a new application on GitHub
  2. Set the GITHUB_REDIRECT_URI environment variable to the callback URL
  3. Set the GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET environment variables
  4. Install Elixir dependencies with mix deps.get
  5. Install NodeJS dependencies with npm install
  6. Setup the database with mix ecto.setup
  7. Start the application with mix phoenix.server

Now you can visit lvh.me:4000 from your browser and click "Sign in with GitHub".

After authorizing the application, you should see the welcome message above.

More Repositories

1

romeo

An XMPP Client for Elixir
Elixir
80
star
2

mirage

Image manipulation package for Elixir
Rust
36
star
3

franz

A Kafka client library for Erlang/Elixir based on librdkafka implemented as a safe Rust NIF.
Rust
35
star
4

cryptex

ARCHIVED! DO NOT USE!
Elixir
24
star
5

taking-off-with-phoenix

Phoenix Workshop
Elixir
22
star
6

exgravatar

An Elixir module for generating Gravatar urls.
Elixir
22
star
7

fast_json

Experimental: JSON encoding/decoding NIF for Erlang/Elixir with Rust
Rust
19
star
8

devbox

Devbox is responsible for bootstrapping your multi-container development environment
Rust
18
star
9

scotty

A toy BEAM Virtual Machine - in Rust
Rust
16
star
10

jabba

Example Phoenix/Ejabberd Mashup
CSS
15
star
11

acme

Introducing Phoenix
Elixir
15
star
12

no-way-jose

Rust NIF for fast JWT signing
Rust
10
star
13

beamcoin

An example Rust NIF that calculates a "proof-of-work" hash asynchronously in multiple threads using a thread pool.
Elixir
8
star
14

dotfiles

Configs for fish, zsh, tmux, vim, and git
Vim Script
8
star
15

revolver

An Elixir HTTP Client inspired by Plug and Ecto
Elixir
7
star
16

juliet

An XMPP Server in Elixir
Elixir
6
star
17

phoenix-webpack-example

Elixir
4
star
18

rusterlium

Rust
3
star
19

key_generator

PBKDF2 implementation for Elixir
Elixir
3
star
20

oso-elixir

Elixir
2
star
21

elixir-docker

2
star
22

phoenix.rs

A Phoenix Channel Client in Rust
Rust
2
star
23

ejabberd_dev

A package to help with building ejabberd modules
Erlang
1
star
24

list-ops

Basic List operations implemented in Elixir without using any internal functions.
Elixir
1
star
25

kv

Rust
1
star
26

json

Rust
1
star
27

basejump

Command-line tool for converting images to base64 strings for HTML/CSS embedding
Python
1
star
28

kafka-protocol

Rust
1
star
29

maths

Elixir
1
star
30

nss-resolver

Rust
1
star
31

lockbox

Rust
1
star
32

goto

Demo Application for GOTO Copenhagen 2017 talk.
Elixir
1
star
33

elixir_script

Elixir -> JavaScript. Can we do it?
Elixir
1
star
34

emacs.d

Emacs Configs - Evil Mode πŸ™ˆ πŸ™‰ πŸ™Š
Emacs Lisp
1
star