Eric Chiang
f43655a8c3
user/manager: connector must exists when creating remote identity
...
Add ConnectorConfigRepo to UserManager. When trying to create a
RemoteIdentity, validate that the connector ID exists.
Fixes #198
10 years ago
Eric Chiang
d518447282
user: move user manager to it's own package
...
This commit moves the user.Manage to its own package (user/manager)
so it can import the connector package in a later commit.
For clarity, it renames "Manager" to "UserManager" using gorname.
This commit has no functional changes.
10 years ago
Eric Chiang
137330b202
user: fix bug in ValidEmail helper
...
mail.ParseAddress will stop parsing a string once it finds a valid
email address. This means you could give ValidUser an email
address followed by junk and it would mark it valid.
This commit fixes this behavior and adds some more test cases.
Fixes #189
10 years ago
Joe Bowers
0c854a21d6
server: endpoint and system for sending invitations to dex
...
An invitation allows users to both verify their email address and set
a new password.
10 years ago
Joe Bowers
2cdb6c0adb
user: more convenient way to read claims that have already been validated
10 years ago
Joe Bowers
468c1b8b5e
user: claims and parsing for invitations
10 years ago
Joe Bowers
ca9227fc19
various: spelling, logging, and commentary cleanup
10 years ago
Bobby Rullo
2ef1b4beff
user: introduce "invite" emails
...
Invite emails are essentially just reset password emails with a
different template (though this can and probably will change (slightly)
in the near future)
11 years ago
Joe Bowers
b1e4369811
fixup: remove debug logging from test
11 years ago
Joe Bowers
12342149d3
fixup: document parseAndVerifyTokenClaims behavior
11 years ago
Joe Bowers
ce8b0a4c9e
tests: fix user tests with for new behavior
11 years ago
Joe Bowers
85113748a8
server: unify password reset and email verification code and behavior
...
This patch proposes behavioral changes. In particular, referring
systems will need to provide client ids under all circumstances.
11 years ago
Joe Bowers
2ed2859896
repo: functional repo tests
...
includes changes to ensure uniform errors for DB and in-memory repos
11 years ago
Joe Bowers
e5db302312
server: expose user disable API endpoint
11 years ago
Joe Bowers
fbbb3cc2df
server: all authorizations fail for disabled users
11 years ago
Joe Bowers
ffabe03bc0
server: don't allow disabled users to access the api
11 years ago
Joe Bowers
f115015a3f
api: don't create a user if you can't send them an email
11 years ago
Joe Bowers
60a36e2c2e
server,db: flag for disabling user login
11 years ago
Giulio Iotti
472e4a02a4
*: Remove unnecessary else statements
...
Whenever it makes the code easier to follow, use early return to
avoid else statements.
11 years ago
Bobby Rullo
66fe201c24
*: move original project to dex
11 years ago