Todd Martin
1a3146f776
[PM-5800] Remove feature flag checks for PasswordlessLogin ( #3713 )
...
* Removed feature flag checks for PasswordlessLogin
* Removed unused reference.
2024-02-13 11:15:24 -05:00
Andreas Coroiu
d63c917c95
[PM-4619] Rewrite UserService methods as commands ( #3432 )
...
* [PM-4619] feat: scaffold new create options command
* [PM-4169] feat: implement credential create options command
* [PM-4619] feat: create command for credential creation
* [PM-4619] feat: create assertion options command
* [PM-4619] chore: clean-up unused argument
* [PM-4619] feat: implement assertion command
* [PM-4619] feat: migrate to commands
* [PM-4619] fix: lint
* [PM-4169] fix: use constant
* [PM-4619] fix: lint
I have no idea what this commit acutally changes, but the file seems to have some character encoding issues. This fix was generated by `dotnet format`
2023-12-14 09:35:52 +01:00
Oscar Hinton
eedc96263a
[PM-3565] Enforce higher minimum KDF ( #3304 )
...
Extract KDF logic into a new Range class. Increase minimum iterations for PBKDF.
2023-12-05 17:21:46 +01:00
Andreas Coroiu
ef50e4dbcd
[PM-2041] Finish adding FIDO2 Authentication ( #3467 )
2023-11-22 13:24:19 -05:00
Andreas Coroiu
80740aa4ba
[PM-2032] Server endpoints to support authentication with a passkey ( #3361 )
...
* [PM-2032] feat: add assertion options tokenable
* [PM-2032] feat: add request and response models
* [PM-2032] feat: implement `assertion-options` identity endpoint
* [PM-2032] feat: implement authentication with passkey
* [PM-2032] chore: rename to `WebAuthnGrantValidator`
* [PM-2032] fix: add missing subsitute
* [PM-2032] feat: start adding builder
* [PM-2032] feat: add support for KeyConnector
* [PM-2032] feat: add first version of TDE
* [PM-2032] chore: refactor WithSso
* [PM-2023] feat: add support for TDE feature flag
* [PM-2023] feat: add support for approving devices
* [PM-2023] feat: add support for hasManageResetPasswordPermission
* [PM-2032] feat: add support for hasAdminApproval
* [PM-2032] chore: don't supply device if not necessary
* [PM-2032] chore: clean up imports
* [PM-2023] feat: extract interface
* [PM-2023] chore: add clarifying comment
* [PM-2023] feat: use new builder in production code
* [PM-2032] feat: add support for PRF
* [PM-2032] chore: clean-up todos
* [PM-2023] chore: remove token which is no longer used
* [PM-2032] chore: remove todo
* [PM-2032] feat: improve assertion error handling
* [PM-2032] fix: linting issues
* [PM-2032] fix: revert changes to `launchSettings.json`
* [PM-2023] chore: clean up assertion endpoint
* [PM-2032] feat: bypass 2FA
* [PM-2032] fix: rename prf option to singular
* [PM-2032] fix: lint
* [PM-2032] fix: typo
* [PM-2032] chore: improve builder tests
Co-authored-by: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com >
* [PM-2032] chore: clarify why we don't require 2FA
* [PM-2023] feat: move `identityProvider` constant to common class
* [PM-2032] fix: lint
* [PM-2023] fix: move `IdentityProvider` to core.Constants
* [PM-2032] fix: missing import
* [PM-2032] chore: refactor token timespan to use `TimeSpan`
* [PM-2032] chore: make `StartWebAuthnLoginAssertion` sync
* [PM-2032] chore: use `FromMinutes`
* [PM-2032] fix: change to 17 minutes to cover webauthn assertion
* [PM-2032] chore: do not use `async void`
* [PM-2032] fix: comment saying wrong amount of minutes
* [PM-2032] feat: put validator behind feature flag
* [PM-2032] fix: lint
---------
Co-authored-by: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com >
2023-11-20 15:55:31 +01:00
Kyle Spearrin
44c559c723
Support for passkey registration ( #2885 )
...
* support for fido2 auth
* stub out registration implementations
* stub out assertion steps and token issuance
* verify token
* webauthn tokenable
* remove duplicate expiration set
* revert sqlproj changes
* update sqlproj target framework
* update new validator signature
* [PM-2014] Passkey registration (#2915 )
* [PM-2014] chore: rename `IWebAuthnRespository` to `IWebAuthnCredentialRepository`
* [PM-2014] fix: add missing service registration
* [PM-2014] feat: add user verification when fetching options
* [PM-2014] feat: create migration script for mssql
* [PM-2014] chore: append to todo comment
* [PM-2014] feat: add support for creation token
* [PM-2014] feat: implement credential saving
* [PM-2014] chore: add resident key TODO comment
* [PM-2014] feat: implement passkey listing
* [PM-2014] feat: implement deletion without user verification
* [PM-2014] feat: add user verification to delete
* [PM-2014] feat: implement passkey limit
* [PM-2014] chore: clean up todo comments
* [PM-2014] fix: add missing sql scripts
Missed staging them when commiting
* [PM-2014] feat: include options response model in swagger docs
* [PM-2014] chore: move properties after ctor
* [PM-2014] feat: use `Guid` directly as input paramter
* [PM-2014] feat: use nullable guid in token
* [PM-2014] chore: add new-line
* [PM-2014] feat: add support for feature flag
* [PM-2014] feat: start adding controller tests
* [PM-2014] feat: add user verification test
* [PM-2014] feat: add controller tests for token interaction
* [PM-2014] feat: add tokenable tests
* [PM-2014] chore: clean up commented premium check
* [PM-2014] feat: add user service test for credential limit
* [PM-2014] fix: run `dotnet format`
* [PM-2014] chore: remove trailing comma
* [PM-2014] chore: add `Async` suffix
* [PM-2014] chore: move delay to constant
* [PM-2014] chore: change `default` to `null`
* [PM-2014] chore: remove autogenerated weirdness
* [PM-2014] fix: lint
* Added check for PasswordlessLogin feature flag on new controller and methods. (#3284 )
* Added check for PasswordlessLogin feature flag on new controller and methods.
* fix: build error from missing constructor argument
---------
Co-authored-by: Andreas Coroiu <andreas.coroiu@gmail.com >
* [PM-4171] Update DB to support PRF (#3321 )
* [PM-4171] feat: update database to support PRF
* [PM-4171] feat: rename `DescriptorId` to `CredentialId`
* [PM-4171] feat: add PRF felds to domain object
* [PM-4171] feat: add `SupportsPrf` column
* [PM-4171] fix: add missing comma
* [PM-4171] fix: add comma
* [PM-3263] fix identity server tests for passkey registration (#3331 )
* Added WebAuthnRepo to EF DI
* updated config to match current grant types
* Remove ExtensionGrantValidator (#3363 )
* Linting
---------
Co-authored-by: Andreas Coroiu <acoroiu@bitwarden.com >
Co-authored-by: Andreas Coroiu <andreas.coroiu@gmail.com >
Co-authored-by: Todd Martin <106564991+trmartin4@users.noreply.github.com >
Co-authored-by: Ike <137194738+ike-kottlowski@users.noreply.github.com >
Co-authored-by: Todd Martin <tmartin@bitwarden.com >
2023-10-30 09:40:06 -04:00
Jake Fink
88dd745070
[PM-1188] Server owner auth migration ( #2825 )
...
* [PM-1188] add sso project to auth
* [PM-1188] move sso api models to auth
* [PM-1188] fix sso api model namespace & imports
* [PM-1188] move core files to auth
* [PM-1188] fix core sso namespace & models
* [PM-1188] move sso repository files to auth
* [PM-1188] fix sso repo files namespace & imports
* [PM-1188] move sso sql files to auth folder
* [PM-1188] move sso test files to auth folders
* [PM-1188] fix sso tests namespace & imports
* [PM-1188] move auth api files to auth folder
* [PM-1188] fix auth api files namespace & imports
* [PM-1188] move auth core files to auth folder
* [PM-1188] fix auth core files namespace & imports
* [PM-1188] move auth email templates to auth folder
* [PM-1188] move auth email folder back into shared directory
* [PM-1188] fix auth email names
* [PM-1188] move auth core models to auth folder
* [PM-1188] fix auth model namespace & imports
* [PM-1188] add entire Identity project to auth codeowners
* [PM-1188] fix auth orm files namespace & imports
* [PM-1188] move auth orm files to auth folder
* [PM-1188] move auth sql files to auth folder
* [PM-1188] move auth tests to auth folder
* [PM-1188] fix auth test files namespace & imports
* [PM-1188] move emergency access api files to auth folder
* [PM-1188] fix emergencyaccess api files namespace & imports
* [PM-1188] move emergency access core files to auth folder
* [PM-1188] fix emergency access core files namespace & imports
* [PM-1188] move emergency access orm files to auth folder
* [PM-1188] fix emergency access orm files namespace & imports
* [PM-1188] move emergency access sql files to auth folder
* [PM-1188] move emergencyaccess test files to auth folder
* [PM-1188] fix emergency access test files namespace & imports
* [PM-1188] move captcha files to auth folder
* [PM-1188] fix captcha files namespace & imports
* [PM-1188] move auth admin files into auth folder
* [PM-1188] fix admin auth files namespace & imports
- configure mvc to look in auth folders for views
* [PM-1188] remove extra imports and formatting
* [PM-1188] fix ef auth model imports
* [PM-1188] fix DatabaseContextModelSnapshot paths
* [PM-1188] fix grant import in ef
* [PM-1188] update sqlproj
* [PM-1188] move missed sqlproj files
* [PM-1188] move auth ef models out of auth folder
* [PM-1188] fix auth ef models namespace
* [PM-1188] remove auth ef models unused imports
* [PM-1188] fix imports for auth ef models
* [PM-1188] fix more ef model imports
* [PM-1188] fix file encodings
2023-04-14 13:25:56 -04:00
Addison Beck
d0c793c951
Update API endpoint to use RegisterResponseModel ( #2282 )
2022-09-19 09:35:57 -04:00
Addison Beck
287dc2e06b
[SG-656] Send a captcha bypass token back from the register endpoint ( #2278 )
...
* Send a captcha bypass token back from the register endpoint
* [review] Use existing user
* [review] Introduce ICaptcheProtectedResponseModel
2022-09-15 10:02:37 -04:00
Justin Baur
7f5f010e1e
Run formatting ( #2230 )
2022-08-29 16:06:55 -04:00
Justin Baur
bae03feffe
Revert filescoped ( #2227 )
...
* Revert "Add git blame entry (#2226 )"
This reverts commit 239286737d .
* Revert "Turn on file scoped namespaces (#2225 )"
This reverts commit 34fb4cca2a .
2022-08-29 15:53:48 -04:00
Justin Baur
34fb4cca2a
Turn on file scoped namespaces ( #2225 )
2022-08-29 14:53:16 -04:00
Justin Baur
231eb84e69
Turn On ImplicitUsings ( #2079 )
...
* Turn on ImplicitUsings
* Fix formatting
* Run linter
2022-06-29 19:46:41 -04:00
Matt Gibson
9a9c9d4bf6
Add error handling to identity accounts controller ( #1909 )
2022-03-14 20:08:01 -05:00
Matt Gibson
5f2da6e4b7
Fix/identity service model validation ( #1837 )
...
* Fix indentation
* Fix comment
* Extract ModelStateValidationFilter add to Indentity MVC opts
* Remove unnecessary base constructor call
2022-02-02 13:26:15 -06:00
Oscar Hinton
0def1830af
Move identity endpoints to Identity service ( #1807 )
2022-01-17 13:21:51 +01:00