All Projects → blackode → Guardian_auth

blackode / Guardian_auth

The Guardian Authentication Implementation Using Ecto/Postgresql Elixir Phoenix [ User Authentication ]

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to Guardian auth

Fullstack Apollo Express Postgresql Boilerplate
💥 A sophisticated GraphQL with Apollo, Express and PostgreSQL boilerplate project.
Stars: ✭ 1,079 (+7093.33%)
Mutual labels:  postgresql, postgres, postgresql-database, authentication
Realtime
Listen to your to PostgreSQL database in realtime via websockets. Built with Elixir.
Stars: ✭ 4,278 (+28420%)
Mutual labels:  postgresql, postgres, phoenix, phoenix-framework
Memento
Collect saved items from different sources around the web
Stars: ✭ 89 (+493.33%)
Mutual labels:  postgresql, phoenix, phoenix-framework
Niklick
Rails Versioned API solution template for hipsters! (Ruby, Ruby on Rails, REST API, GraphQL, Docker, RSpec, Devise, Postgress DB)
Stars: ✭ 39 (+160%)
Mutual labels:  postgresql, postgres, postgresql-database
Postgresqltuner
Simple script to analyse your PostgreSQL database configuration, and give tuning advice
Stars: ✭ 2,214 (+14660%)
Mutual labels:  postgresql, postgres, postgresql-database
Embedded Database Spring Test
A library for creating isolated embedded databases for Spring-powered integration tests.
Stars: ✭ 196 (+1206.67%)
Mutual labels:  postgresql, postgres, postgresql-database
Zapatos
Zero-abstraction Postgres for TypeScript: a non-ORM database library
Stars: ✭ 448 (+2886.67%)
Mutual labels:  postgresql, postgres, postgresql-database
Phx gen auth
An authentication system generator for Phoenix 1.5 applications.
Stars: ✭ 702 (+4580%)
Mutual labels:  phoenix, authentication
Vscode Sqltools
Database management for VSCode
Stars: ✭ 741 (+4840%)
Mutual labels:  postgresql, postgres
Postgresql book
Book about PostgreSQL (russian)
Stars: ✭ 780 (+5100%)
Mutual labels:  postgresql, postgresql-database
Supabase
The open source Firebase alternative. Follow to stay updated about our public Beta.
Stars: ✭ 25,142 (+167513.33%)
Mutual labels:  postgresql, postgres
Typescript Seed
Typescript Seed Project (Angular, Hapi, Cookie Auth, TypeORM, Postgres)
Stars: ✭ 12 (-20%)
Mutual labels:  postgres, authentication
Metabase
The simplest, fastest way to get business intelligence and analytics to everyone in your company 😋
Stars: ✭ 26,803 (+178586.67%)
Mutual labels:  postgresql, postgres
Xorm
Simple and Powerful ORM for Go, support mysql,postgres,tidb,sqlite3,mssql,oracle, Moved to https://gitea.com/xorm/xorm
Stars: ✭ 6,464 (+42993.33%)
Mutual labels:  postgresql, postgres
Blog
Everything about database,business.(Most for PostgreSQL).
Stars: ✭ 6,330 (+42100%)
Mutual labels:  postgresql, postgres
Schemats
Generate typescript interface definitions from SQL database schema
Stars: ✭ 799 (+5226.67%)
Mutual labels:  postgresql, postgres
Pgmetrics
Collect and display information and stats from a running PostgreSQL server
Stars: ✭ 612 (+3980%)
Mutual labels:  postgresql, postgres
Pizzly
The simplest, fastest way to integrate your app with an OAuth API 😋
Stars: ✭ 796 (+5206.67%)
Mutual labels:  postgresql, authentication
Efcore.pg
Entity Framework Core provider for PostgreSQL
Stars: ✭ 838 (+5486.67%)
Mutual labels:  postgresql, postgres
Analytics
Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Stars: ✭ 9,469 (+63026.67%)
Mutual labels:  postgresql, phoenix

GuardianAuth

This is the working example of ** Guardian Authentication ** implemented using the ** Postgresql ** database. In this example I am using the default localhost for live authentication for live database.

Features

  • User Registrations Listing Editing and Deleting
  • User Sessions Creation/Deletion
  • If the new user is created, a session is automatically created and treating that user as a logged in user automatically.
  • Authentication Url Redirection.

If the user try to visit the unauthorized urls with out logging in then he is redirected to login page. If he already logged in and trying to visit login page, if the token is still exists, he is redirected to authenticated users.

Technologies

The following are the versions used at the time of writing this template.

  • Elixir 1.5.1
  • Erlang 20.0
  • Phoenix 1.3.0

Authentication Elixir Modules

  • Guardian ~> 0.14
  • bcrypt_elixir ~> 1.0
  • comeonin ~> 4.0

** NOTE ** For bcrypt_elixir version 1.0, you need to be using Erlang 20.0
Downgrade to bcrypt_elixir version 0.12, if you use the older version of the Erlang 19.

Usage

You can use this as an Authentication Template or Boilerplate and start focussing on your development instead of spending time in writing user signin and signout.
Just clone it using the url https://github.com/blackode/guardian_auth.git and change the MODULE NAMES and APP_NAMES according to your project.

Starting Server

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Buy me a Coffee if this is useful Thanks for Reading.

https://paypal.me/ankanna

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].