Revamp the authentication setup (#7419)
* feat: Add email pass authentication provider package * feat: Revamp auth module and remove concept of scope * feat: Revamp the auth module to be more standardized in how providers are loaded * feat: Switch from scope to actor type for authentication * feat: Add support for per-actor auth methods * feat: Add emailpass auth provider by default * fix: Add back app_metadata in auth module
This commit is contained in:
1 parent
7b0cfe3b77
commit
8a070d5d85
100 files changed
+991
-1005
No files matched your search
@@ -32,7 +32,6 @@ export const createAdminUser = async (
|
||||
const authIdentity = await authModule.create({
|
||||
provider: "emailpass",
|
||||
entity_id: "admin@medusa.js",
|
||||
scope: "admin",
|
||||
provider_metadata: {
|
||||
password: "somepassword",
|
||||
},
|
||||
@@ -55,8 +54,6 @@ export const createAdminUser = async (
|
||||
actor_id: user.id,
|
||||
actor_type: "user",
|
||||
auth_identity_id: authIdentity.id,
|
||||
scope: "admin",
|
||||
app_metadata: {},
|
||||
},
|
||||
"test"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user