Skip to content

ssoriche/postgrest-auth

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
t
 
 
 
 
 
 
 
 
 
 

PostgREST Authentication Example/Starting Point

This application can be used as a starting point for PostgREST authentication based on a Devise installation.

Database setup, management, and configuration is done via sqitch. One of the components of the installation creates a Devise based Users table, simply comment out the contents of deploy/devise_test.sql and update the users_view.sql to point at the appropriate table.

Functions

  • auth.request_password_reset(identifier TEXT)
  • auth.reset_password(identifier TEXT, token UUID, pass TEXT)
  • auth.signup(username TEXT, email TEXT, pass TEXT, role TEXT)
  • auth.confirm(token UUID, role TEXT)
  • auth.login(identifier TEXT, pass TEXT, exp INTEGER=NULL)
  • auth.change_password(identifier TEXT, current_password TEXT, new_password TEXT, confirm_password TEXT)

About

A simple application using the documented authorization features of postgrest.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published