docs: tax provider updates for next release (#12431)
* docs: tax provider updates for next release * change images * fix vale error * fix vale errors * generate
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { CardList } from "docs-ui"
|
||||
|
||||
export const metadata = {
|
||||
title: `Auth Providers`,
|
||||
title: `Auth Module Provider`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
In this document, you’ll learn how the Auth Module handles authentication using providers.
|
||||
In this guide, you’ll learn about the Auth Module Provider and how it's used.
|
||||
|
||||
## What's an Auth Module Provider?
|
||||
## What is an Auth Module Provider?
|
||||
|
||||
An auth module provider handles authenticating customers and users, either using custom logic or by integrating a third-party service.
|
||||
An Auth Module Provider handles authenticating customers and users, either using custom logic or by integrating a third-party service.
|
||||
|
||||
For example, the EmailPass Auth Module Provider authenticates a user using their email and password, whereas the Google Auth Module Provider authenticates users using their Google account.
|
||||
|
||||
@@ -35,9 +35,19 @@ For example, the EmailPass Auth Module Provider authenticates a user using their
|
||||
|
||||
---
|
||||
|
||||
## How to Create an Auth Module Provider?
|
||||
|
||||
An Auth Module Provider is a module whose service extends the `AbstractAuthModuleProvider` imported from `@medusajs/framework/utils`.
|
||||
|
||||
The module can have multiple auth provider services, where each is registered as a separate auth provider.
|
||||
|
||||
Refer to the [Create Auth Module Provider](/references/auth/provider) guide to learn how to create an Auth Module Provider.
|
||||
|
||||
---
|
||||
|
||||
## Configure Allowed Auth Providers of Actor Types
|
||||
|
||||
By default, users of all actor types can authenticate with all installed auth module providers.
|
||||
By default, users of all actor types can authenticate with all installed Auth Module Providers.
|
||||
|
||||
To restrict the auth providers used for actor types, use the [authMethodsPerActor option](!docs!/learn/configurations/medusa-config#httpauthMethodsPerActor) in Medusa's configurations:
|
||||
|
||||
@@ -61,9 +71,3 @@ module.exports = defineConfig({
|
||||
When you specify the `authMethodsPerActor` configuration, it overrides the default. So, if you don't specify any providers for an actor type, users of that actor type can't authenticate with any provider.
|
||||
|
||||
</Note>
|
||||
|
||||
---
|
||||
|
||||
## How to Create an Auth Module Provider
|
||||
|
||||
Refer to [this guide](/references/auth/provider) to learn how to create an auth module provider.
|
||||
|
||||
Reference in New Issue
Block a user