File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 " http://restify.com/" ,
1414 " http://stackoverflow.com/a/11166268/1568890" ,
1515 " http://stackoverflow.com/a/18687445/1568890" ,
16+ " http://www.passportjs.org/" ,
1617 " http://www.postgresql.org/docs/current/static/ddl-rowsecurity.html" ,
1718 " http://www.postgresql.org/docs/current/static/functions-matching.html" ,
1819 " http://www.postgresql.org/docs/current/static/indexes-ordering.html" ,
Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ title: PostGraphile JWT Guide
99> project. The language of the specification is meant to be generally applicable
1010> and adoptable by any who might want to use it.
1111
12- ** NOTE** : what follows is a specification of how you can use JWTs to authenticate a user
13- with PostgreSQL such that PostgreSQL may perform your authorization checks. This
14- is not the only way of achieving this goal with PostGraphile, for example you
15- can do as the PostGraphile maintainer does and use standard session-based
16- authentication (i.e. with cookies) via the relevant Express/Koa/Fastify middleware
17- and PostGraphile's [ ` pgSettings ` function] ( /postgraphile/usage-library/#pgsettings-function )
12+ ** NOTE** : what follows is a specification of how you can use JWTs to
13+ authenticate a user with PostgreSQL such that PostgreSQL may perform your
14+ authorization checks. This is not the only way of achieving this goal with
15+ PostGraphile, for example you can do as the PostGraphile maintainer does and use
16+ standard session-based authentication (i.e. with cookies) via the relevant
17+ Express/Koa/Fastify middleware and PostGraphile's
18+ [ ` pgSettings ` function] ( /postgraphile/usage-library/#pgsettings-function )
1819allowing you to leverage powerful pre-built authentication stacks such as
1920[ passport.js] ( http://www.passportjs.org/ ) which has OAuth integration with most
2021major "social login" providers.
You can’t perform that action at this time.
0 commit comments