feat(webui): add a member by provider subject or email
POST /api/orgs/{id}/members binds a person by subject, or by email as a
placeholder. The first sign-in whose provider vouches for that email
claims it: the State Store moves the binding onto the provider's subject
in one statement, so a second account with the same address finds
nothing to claim and later sign-ins rest on the subject alone.
This commit is contained in:
1 parent
9e1a40ce99
commit
37cbf2ef47
17 files changed
+2085
-1505
No files matched your search
@@ -163,6 +163,14 @@ export const api = {
|
||||
}),
|
||||
orgMembers: <T = unknown>(id: string) =>
|
||||
request<T>(`/api/orgs/${encodeURIComponent(id)}/members`),
|
||||
addOrgMember: <T = unknown>(
|
||||
id: string,
|
||||
member: { subject?: string; email?: string; role: string },
|
||||
) =>
|
||||
request<T>(`/api/orgs/${encodeURIComponent(id)}/members`, {
|
||||
method: "POST",
|
||||
body: member,
|
||||
}),
|
||||
setOrgMember: <T = unknown>(
|
||||
id: string,
|
||||
identity: string,
|
||||
|
||||
Reference in new issue
Block a user