Skip to content

Commit

Permalink
Update tutorials and explainers
Browse files Browse the repository at this point in the history
  • Loading branch information
iaincollins committed Oct 6, 2020
1 parent 0c35645 commit cd3d2a1
Showing 1 changed file with 48 additions and 11 deletions.
59 changes: 48 additions & 11 deletions www/docs/tutorials.md
Expand Up @@ -3,25 +3,62 @@ id: tutorials
title: Tutorials and Explainers
---

### How to restrict access
## NextAuth.js tutorials

* [Securing pages and API routes](tutorials/securing-pages-and-api-routes)
_These tutorials are contributed by the community and hosted on this site._

### How to use custom models
_New submissions and edits are welcome!_

* [Custom models with TypeORM](tutorials/typeorm-custom-models)
### [Securing pages and API routes](tutorials/securing-pages-and-api-routes)

### How to use custom adapters
How to restrict access to pages and API routes.

* [Creating a database adapter](tutorials/creating-a-database-adapter)
### [Custom models with TypeORM](tutorials/typeorm-custom-models)

### How to write tests
How to use models with custom properties using the TypeORM adapter.

* [Testing with Cypress](tutorials/testing-with-cypress)
### [Creating a database adapter](tutorials/creating-a-database-adapter)

### How to use the Credentials Provider
How to create a custom adapter, to use any database to fetch and store user / account data.

* [LDAP Authentication](tutorials/ldap-auth-example)
### [LDAP Authentication](tutorials/ldap-auth-example)

How to use the Credentials Provider to authenticate against an LDAP database.


This approach can be used to authenticate existing user accounts against any backend.

### [Testing with Cypress](tutorials/testing-with-cypress)

How to write tests using Cypress.

## Other tutorials and explainers

_These are tutorials and explainers that have been submitted or that we have found on the web and are hosted elsewhere They include articles, videos and example projects. Submissions for inclusion are welcome!_

### [Adding social authentication support to a Next.js app](https://getstarted.sh/bulletproof-next/add-social-authentication)

A tutorial by Arunoda Susirpiala. Checkout [GetStarted](https://getstarted.sh/) for more examples.

### [Add auth support to a Next.js app with a custom backend](https://arunoda.me/blog/add-auth-support-to-a-next-js-app-with-a-custom-backend)

A tutorial by Arunoda Susirpiala.

### [How to Configure Azure AD B2C Authentication with Next.js](https://benjaminwfox.com/blog/tech/how-to-configure-azure-b2c-with-nextjs)

Configuring authentication with Azure B2C in Next.js is not a particularly straight forward process. We'll look at how to facilitate this using the NextAuth.js library. By Ben Fox.

### [Authentication patterns for Next.js](https://leerob.io/blog/nextjs-authentication)

Next.js supports multiple patterns for authentication, each designed for different use cases. This guide will allow you to choose your adventure based on your constraints. By Lee Robinson.

### [Passwordless Authentication with next-auth](https://www.youtube.com/watch?v=GPBD3acOx_M)

A video tutorial by Xiaoru Li from Prisma.

### [Passwordless Authentication with Next.js, Prisma, and next-auth](https://dev.to/prisma/passwordless-authentication-with-next-js-prisma-and-next-auth-5g8g)

In this post, you'll learn how to add passwordless authentication to your Next.js app using Prisma and next-auth. By the end of this tutorial, your users will be able to log in to your app with either their GitHub account or a Slack-styled magic link sent right to their Email inbox. By Xiaoru Li.

### [Fullstack Authentication Example with Next.js and NextAuth.js](https://github.com/prisma/prisma-examples/tree/latest/typescript/rest-nextjs-api-routes-auth)

This example shows how to implement a fullstack app in TypeScript with Next.js using React (frontend), Next.js API routes and Prisma Client (backend). It also demonstrates how to implement authentication using NextAuth.js. By Nikolas Burk at Prisma.

1 comment on commit cd3d2a1

@vercel
Copy link

@vercel vercel bot commented on cd3d2a1 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.