how-to: SQL User Management using postgres’ users and passwords (#581)

This commit is contained in:
fjf2002
2023-04-21 18:52:56 -05:00
committed by Laurence Isla
parent 5fb9e81969
commit 1a03ece441
4 changed files with 356 additions and 0 deletions
+8
View File
@@ -305,6 +305,8 @@ Schema Isolation
You can isolate your api schema from internal implementation details, as explained in :ref:`schema_isolation`. For an example of wrapping a private table with a public view see the :ref:`public_ui` section below.
.. _sql_user_management:
SQL User Management
===================
@@ -486,3 +488,9 @@ The response would look like the snippet below. Try decoding the token at `jwt.i
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImZvb0BiYXIuY29tIiwicGFzcyI6ImZvb2JhciJ9.37066TTRlh-1hXhnA9oO9Pj6lgL6zFuJU0iCHhuCFno"
}
Alternatives
~~~~~~~~~~~~
See the how-to :ref:`sql-user-management-using-postgres-users-and-passwords` for a similar way that completely avoids the table :code:`basic_auth.users`.