Skip to content

Instantly share code, notes, and snippets.

View patatoid's full-sized avatar
💭
happy

Pascal Knoth patatoid

💭
happy
View GitHub Profile
@patatoid
patatoid / Getting-started.md
Last active November 15, 2020 16:38
Proposition of wiki documentation update (https://github.com/riverrun/phauxth/wiki/Getting-started)

This page looks at using the Phauxth installer to add authentication / authorization to your app.

The installer provides a basic starting point for your app and examples of how you can use Phauxth. It also provides examples of how you can authorize users based on the information that Phauxth.Authenticate adds to the conn (connection) struct.

Create new phoenix project

Run the following commands (replace alibaba with the name of your project):

" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing debian.vim since it alters the value of the
" 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.