1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00
Commit Graph

137 Commits

Author SHA1 Message Date
Oscar Hinton
6b9246c272 Bulk remove organization users (#376)
* Add support for bulk deleeting org users

* Rename to UserBulkDeleteRequest

* Combine UserBulkReinviteRequest and DeleteRequest to OrganizationUserBulkRequest
2021-05-17 10:11:15 +02:00
Oscar Hinton
1e2c56cacf Add bulk reinvite apis (#374) 2021-05-12 11:17:18 +02:00
Matt Gibson
1f62b22285 CLI specifies bitwarden api for send download (#348)
This is needed for CLI to download Send files from non-configured
Bitwarden Servers. Web does not have this issue because it can assume
api from its own url.
2021-04-20 19:17:31 -05:00
Matt Gibson
a5ccca05da Fix mistake and clarify api method name (#347) 2021-04-20 14:59:51 -05:00
Matt Gibson
62cc43fb46 Move renew endpoint to fix overlapping endpoint issue (#335) 2021-04-12 09:45:06 -05:00
Vincent Salucci
f4f00b1eb2 [Reset Password] Enrollment API, event type, and models update (#315) 2021-03-31 11:05:09 -05:00
Matt Gibson
5c734747a9 Fix post attachment file path (#316) 2021-03-30 18:43:10 -05:00
Matt Gibson
afac694e9a Attachment azure upload blobs (#312)
* Add direct attachment download and upload API endpoints

* Use direct download method

Enable download of emergency access attachments through EmergencyAccessId

* Match new Server model items

* New Server model for creating attachments.

Provides a url to upload data to, the type of upload, and the Cipher Response expected by the previous call

* Use direct upload url and scheme

* Report Failed single shot azure uploads

* Add cipher attachment upload to file upload service

* Deprecate legacy api methods

* Handle old servers missing new upload api methods

* Improve Send error handling

* Fallback attachment downloads on new endpoint not found

Limit upload size to the new 500MB

* Improve error handling

* lint fixes
2021-03-26 16:57:07 -05:00
Matt Gibson
cfc7687815 Upload to Azure strorage blobs (#296)
* Implemen AzureStorageService

handes uploading files to azure blob

* Correct one-shot size

* Add azureStorage.service abstraction

* Rename azure upload method

* Prefer abstractions in DI

* Abstract file upload to a single service handling uploads

* Fallback to legacy upload method

* Linter fix

* Limit legacy upload to 404 error
2021-03-25 10:20:38 -05:00
Oscar Hinton
f20af0cd7c WebAuthn (#163) 2021-03-15 16:16:51 +01:00
Matt Gibson
8541027d40 Handle text response errors (#301)
* Parse text error response to json Message field

* Do not output object.toString, prefer object serialization
2021-03-09 10:58:17 -06:00
Matt Gibson
1324416784 Direct download for send (#288)
* Allow for responding with time-limited download URL

* Re-verify access on download link request
2021-03-01 15:03:04 -06:00
Thomas Rittson
d376927e5e Improved handling of grantor access to organizations after takeover (refactored) (#267)
* Revert "Add policy property to TakeoverResponse"

This reverts commit 31da5081e6833cf8a9d5bb869c14600f25ca3f39.

* Add getEmergencyGrantorPolicies to api service
2021-02-10 09:06:18 +10:00
Matt Gibson
58f40b0085 Fix glob processing in npm. Ban single param parens (#257) 2021-02-04 09:49:23 -06:00
Oscar Hinton
11249e3444 Remove a safari hack (#224) 2021-02-03 18:02:02 +01:00
Matt Gibson
09c444ddd4 Add send to cli (#253)
* Upgrade commander to 7.0.0

* Add url to Api call

This is needed to allow access to sends that are available from a
different Bitwarden server than configured for the CLI

* Allow upload of send files from CLI

* Allow send search by accessId

* Utils methods used in Send CLI implementation

* Revert adding string type to encrypted file data

* linter fixes

* Add Buffer to ArrayBuffer used in CLI send implementation
2021-01-29 15:08:52 -06:00
Matt Gibson
cea09a22e5 Update revision date upon cipher restore (#243)
* Update revision date upon cipher restore

* Receive and use returned datetimes from restore
2021-01-08 08:53:41 -06:00
Oscar Hinton
573eea66ee Add support for Emergency Access (#204)
* Add support for Emergency Access

* Resolve review comments
2020-12-22 10:53:48 -05:00
Addison Beck
0565d6f667 Implemented tax collection for subscriptions (#215) 2020-12-04 12:05:31 -05:00
Addison Beck
79b856cb6e Implement User-based API Keys (#197)
* Added support for authenticating with an API key

* added api service methods for user api keys

* fixed a copy/pasted api endpoint url

* Let toIdentityToken() use a a prestored client_id in place of the application client_id if one exists

* Allowed for api key auth in the cli

* Removed some commented out code commited for apiKey auth

* Cleanup for ApiKey auth in the CLI

* Removed cli prefix from client_crendential auth types

* Removed ClientPrefix conditional from decoded token getters

* Update src/services/api.service.ts

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>

* formatting

* changed command from login --apiKey to login --apikey

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
2020-11-10 15:15:40 -05:00
Kyle Spearrin
0e9e73ce95 Some groundwork for Send (#192)
* send work

* New method to update the last used index (#184)

Instead of updating it every time you call getNext(), it will be updated in a separate call, to avoid updating the index when the cipher did not auto-fill correctly (e.g wrong frame)
Fixes #1392

* added OnlyOrg to PolicyType enum (#183)

* [Require SSO] Add policy type enumeration (#186)

* Added SsoAuthentication policy type

* Updated policy type name // added comments for clarification of what each type controls

* [SSO] New user provision flow (#173)

* Initial commit of new user sso flow

* Adjusted stateSplit conditional per review

* Add logging to lowdb storage service (#188)

* Fix lint errors/warnings (#187)

* remove password api

* access id

* makeSendKey

Co-authored-by: Josep Marí <xusoo@users.noreply.github.com>
Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com>
Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2020-11-02 15:58:18 -05:00
Chad Scharf
23ded0d115 Fix lint errors/warnings (#187) 2020-10-20 10:20:22 -04:00
Chad Scharf
fa2b8e834b Wrap sso login with pre-validation check (#160)
* Wrap sso login with pre-validation check

* Add form promise for SSO preValidate

* Removed boolean variable, .catch()
2020-09-08 10:36:22 -04:00
Addison Beck
e07526a1b6 Link existing user to sso (#158)
* facilite linking an existing user to an org sso

* fixed a broken import

* added ssoBound and identifier to an org model

* added user identifier to sso callout url

* changed url for delete sso user api method

* facilite linking an existing user to an org sso

* fixed a broken import

* added ssoBound and identifier to an org model

* added user identifier to sso callout url

* changed url for delete sso user api method

* added a token to the existing user sso link flow

* facilite linking an existing user to an org sso

* fixed a broken import

* facilite linking an existing user to an org sso

* fixed a broken import

* added ssoBound and identifier to an org model

* added user identifier to sso callout url

* changed url for delete sso user api method

* added a token to the existing user sso link flow

* facilite linking an existing user to an org sso

* fixed a broken import

* removed an extra line

* encoded the user identifier on sso link

* code review cleanup for link sso

* removed a blank line
2020-08-27 11:00:05 -04:00
Addison Beck
b32b016f82 Merge plan and price updates (#145)
* Created a PlanResponse model & relevant API request for getting plan data from the server
2020-08-11 14:20:39 -04:00
Addison Beck
1cb59b5cc7 added api service methods for delete many w/admin calls 2020-08-03 22:24:06 -04:00
Vincent Salucci
f301b92dc3 [SSO] Merge feature/sso into master (#139)
* [SSO] Reset Master Password (#134)

* Initial commit of reset master password (sso)

* Updated line length error

* Updated import line again

* Added trailing comma

* restored reference data for RegisterRequest

* Updated tracking boolean name // added success route update based on passed boolean

* Added new API // reverted Register // deleted reset // added change pw and sso

* Changed redirect URI to protected to override in sub-class

* Updated api to setPassword // Updated request model name // Updated change password refs // Updated formatting

* Encoded necessary parts of authorize url // Added default catch error message

* Refactored methods inside change password base component // removed unnecesary query param for sso

* [lint] Fixed error (#137)

* Cleaned lint error

* Fixed sso lint error
2020-08-01 08:42:24 -05:00
Kyle Spearrin
fefef546f0 sso support (#127)
* support for sso

* created master password boolean

* resetMasterPassword flows

* throw on bad ctor for token request
2020-07-16 08:59:29 -04:00
Chad Scharf
7fd52c62f3 Merge pull request #115 from bitwarden/feature/tax-info-collection
Support tax collection info
2020-06-17 10:50:14 -04:00
Chad Scharf
dea0233ee3 Support tax collection info 2020-06-12 19:29:52 -04:00
Kyle Spearrin
1bbd808105 getEnterprisePortalSignInToken api (#105) 2020-05-27 15:21:53 -04:00
Chad Scharf
19668ab5f2 [Soft Delete] jslib updates for new API updates
New API methods and cipher Deleted Date property, plus search expansion to toggle on deleted flag.
2020-04-03 16:32:15 -04:00
Kyle Spearrin
0f699515a4 fixes to getPoliciesByToken (#81) 2020-03-02 11:37:44 -05:00
Kyle Spearrin
4aecc53dde API for getting policies by token (#80)
* API for getting policies by token

* not authed when calling this API
2020-03-02 10:15:54 -05:00
Kyle Spearrin
7d8143b288 react to policy api changes 2020-01-20 08:54:51 -05:00
Kyle Spearrin
f66de2207c policy apis 2020-01-15 11:24:00 -05:00
Kyle Spearrin
5819023bc4 no-store cache 2020-01-13 07:49:05 -05:00
Kyle Spearrin
9f2d9c0a91 allow custom user agent string 2019-10-07 10:02:18 -04:00
Kyle Spearrin
575a28e25f in-app purchase pre-check api 2019-09-19 08:52:57 -04:00
Kyle Spearrin
fbc7d6c2bc get rid of useCredentials variable 2019-08-22 12:04:15 -04:00
Kyle Spearrin
640c44820a SafariExtension not browser 2019-08-15 15:17:48 -04:00
Kyle Spearrin
e96fa17b61 dont use credentials for safari 2019-08-15 14:58:17 -04:00
Kyle Spearrin
4f876fc222 payment response for adjust seats 2019-08-10 13:14:53 -04:00
Kyle Spearrin
de9bcac0ec adjust storage with payment intent/method handling 2019-08-10 12:59:47 -04:00
Kyle Spearrin
e28e820286 new payment api changes 2019-08-09 23:56:55 -04:00
Kyle Spearrin
2830121471 event post is always many 2019-07-03 12:13:20 -04:00
Kyle Spearrin
e15e0eebbd collect many events 2019-07-03 09:00:13 -04:00
Kyle Spearrin
bc5a6e02c1 native fetch with proxy support on node api 2019-06-24 11:07:26 -04:00
Kyle Spearrin
49a6b5046f setup for client event collection 2019-06-20 08:56:45 -04:00
Kyle Spearrin
3ec0b7fb5d isJsonResponse helper 2019-04-10 15:39:36 -04:00