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
@@ -3,6 +3,7 @@ package archieui
|
||||
import (
|
||||
"context"
|
||||
"log/slog"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/samcharles93/archie-core/internal/app/servicekit"
|
||||
@@ -62,6 +63,10 @@ func compose(ctx context.Context, d deps) *webui.Server {
|
||||
Health: d.Health,
|
||||
ControlPlane: d.ControlPlane,
|
||||
Identities: d.Identities,
|
||||
Issuer: strings.TrimSpace(d.Options.OidcIssuer),
|
||||
}
|
||||
if subjects, ok := d.Identities.(identity.SubjectBinding); ok {
|
||||
srv.Subjects = subjects
|
||||
}
|
||||
if snapshots, ok := d.Store.(storecontract.ConfigSnapshotStore); ok {
|
||||
srv.ConfigSource = webui.RemoteConfigView(snapshots)
|
||||
|
||||
Reference in new issue
Block a user