Skip to content

Commit

Permalink
Merge pull request #55 from redwoodjs/dt-custom-md5-auth-example
Browse files Browse the repository at this point in the history
  • Loading branch information
dthyresson authored Nov 17, 2022
2 parents bb1998a + f83e4e6 commit 3a3860b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions 2022-11-13-custom-md5-auth/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# How to Implement Custom Auth

Please the the "About" page for a description of this example and how the authentication works.

TLDR; this is a contrived example of a custom Md5Auth client that implements the needed login, logout, signout, signup, getToken, and getUserMetadata auth provider methods.
This is a contrived example of a custom Md5Auth client that implements the needed login, logout, signout, signup, getToken, and getUserMetadata auth provider methods.

On sign up, your a password is generated from a MD5 hash of your username.

You can then use this password to login -- and also to be used to authenticate GraphQL requests to protected queries.

Please see the [About](./web/src/pages/AboutPage/AboutPage.tsx) page for a description of this example and how the authentication works.

## Demo

Visit [https://rw-office-hours-custom-auth.netlify.app/about](https://rw-office-hours-custom-auth.netlify.app/about) to demo this custom auth example.

# README

Welcome to [RedwoodJS](https://redwoodjs.com)!
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This repo is where these demos and examples live.
- [2022-10-19-snaplet-copycat-seeds](2022-10-19-snaplet-copycat-seeds/README.md) - Seed deterministic data with Snaplet's Copycat
- [2022-10-26-nested-writes-demo](2022-10-26-nested-writes-demo/README.md) - How To Perform Nested Writes with RedwoodJS and GraphQL
- [2022-11-02-og-image-demo](2022-11-02-og-image-demo/README.md) - How to Generate OG Images for Social Cards using Netlify Edge Functions and RedwoodJS MetaTags
- [2022-11-13-custom-md5-auth](2022-11-13-custom-md5-auth/README.md) - How to Implement Custom Auth in RedwoodJS v4

## Discord Invite Link

Expand Down

0 comments on commit 3a3860b

Please sign in to comment.