Commit Graph

36 Commits

Author SHA1 Message Date
Toporkov Igor
df471b4064
FF-143: Uac authorization (#165)
* Add uac dependency

* use uac to issue tokens

* Configure uac

* Authorize operations with uac

* Issue tokens with uac in tests

* wip: furthemore migrate to uac

* Remove unreachable case

* Adjust wapi config in tests

* Don't start old authorizer

* Fix auth context creation in tests

* Fix all definitions of create_auth_ctx

* Revert "Don't start old authorizer"

This reverts commit 2636fcfa48e798a8fb07534e512ea5b494f57b19.

* Fix old config naming

* Deduplicate unique id generation

* Provide dummy snowflake config

* Use macro for signee

* Authorize operation withc UAC (#140)

* Verify tokens with uac

* Implement dummy authorization

* Return quote verification

* Restore authorizer code order

* Restore signer code order

* Update commentaries

* Provide operation access lists

* Give party read/write permissions to the test tokens

* Introduce more resources, standardize CreateWithdrawal authoriation

* Download file with read access

* Authorize withdrawals with dedicated permission

* Fix permissions in tests

* Upgrade uac

* Remove redundant auth related modules

* Use uac issue

* Update tests

* Fix opaque type usage

* Add domain_name to uac config

* Remove signee from test config

* Rollback to old roles

* Upgrade uac

* Fix for wapi wallet tests

* Use macro for domain

* Remove domain name from configs

* Use uac utils functions

* Make operation access less strict

* Remove unused signee option

* Replace get_party_id with uac function

* Create ACL migration layer

* Reimplement operation access

* Fix style

* Remove reintroduced auth code

* Upgrade uac

* Remove redundant verification option

* Suppress opaque introspection dialyzer warning

* Fix nested resources ACLs

* Issue test quota without resource access

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

* Adapt new p2p code

* Rename refactor and move role mapping

* Refactor roles mapping

* Use uac dev branch

* Fix merge incompatibilities

* Fix even more incompatibilities

* Bump uac and adjust code to it

* Add operation access for new ops

* Upgrade uac

* Issue tokens the new way

* Fix merge artifacts

* Create simple resource hierarchy for new operations

* Fix authorization by bearer

* Fix missed merge issues

* Apply suggestions from code review

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

* Verify partyID in p2p continuation tokens, add signee to wapi config

* Remove OperationID from log message where it is already present in meta

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

* Add signee to app config

* Test if unauthorized user still can create withdrawal using grants

* Do withdrawal specific authorization inside create_withdrawal

* Test wapi_SUITE default with both tokens, specify domain when issuing tokens

* Upgrade uac

* Specify which domains to decode

* Throw withdrawal authorization errors

* Split too long lines

* Simplify grant authorization

* Do not handle 'missing' errors, handle wallet notfound

* Rework error mapping slightly

* Add resource to insufficient_access/claim error

* Try bumping cowboy_cors to fix CI dialyzer error

* Use fork-master version of cowboy_cors

Co-authored-by: Andrew Mayorov <a.mayorov@rbkmoney.com>
2020-05-14 13:44:52 +03:00
Артем
5d659b86f9
FF-160: Add w2w transfer (#178)
* initial

* [WIP] w2w transfer + updated proto

* added limit check, validations, revert

* removed reverts< worked test for transfer & adjastment

* minor

* added eventsink handles

* added fixes

* minors

* added wapi handle

* added migration, added wapi test

* fixed, updated swag

* fixed

* fixed codec

* Fix tests

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-02-26 12:41:01 +03:00
Boris
2b335fa3d4
FF-73: call wallets from wapi using thrift API (#75)
* fix test

* FF-73: init

* FF-73

* FF-73: wapi cut off utils

* FF-73: cut off wallet from wapi_ff_backend

* FF-73: encode to marshal

* impl thrift changes

* FF-73: add test

* idempotense wallet

* uncomment options

* fix bugs

* del junk

* del maybe_marshal

* little change

* Remove races in tests

* refactored, added wallet mock tests

* Fix missed variable

* fixed, added thrift handler

* merge master

* daylizer fix

* FF-94: Wapi identity thrift (#88)

* added identity create and get methods

* added identity challenges back, get events back

* added tests

* nano

* added some fixed

* fixed tests

* fixed tests

* refactored

* refactored

* added new suite, some fixes

* added more tests

* fixed types

* minor

* fixed tests

* fixed linter

* updated proto

* fixed

* updated proto

* fixed

* fixed

* nano

Co-authored-by: Артем <WWW_cool@inbox.ru>
Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-02-14 18:54:55 +03:00
Артем
ec925d3f2b
Epic: P2P (#152) 2020-02-07 13:34:23 +03:00
ndiezel0
5695f49453
MG-175: Add scoper_event_handler_options uses and examples (#174) 2020-02-03 12:21:32 +03:00
Boris
97bbea6c9b
FF-136: add encrypted token (#169) 2020-01-29 18:07:07 +03:00
Rustem Shaydullin
52d0997f38 MG-175: Upgrade woody 2020-01-27 16:40:48 +03:00
Alexey
2bc256464b
FF-128: Bender integration part 1 (#138) 2019-11-15 16:13:20 +03:00
Sergey Yelin
eaf68723c7
FF-116: Switch to shumpune proto (#126)
* Switch to shumpune proto

* Affected -> Clock

* Added shumpune_proto

* Add coverage config

* Add extra parameter with type clock() to ff_transaction:balance/1

* Update hellgate and dominant

* Add clock marshaling rules

* Upgrade fistful-proto

* Fix dialyzer errors

* Code review fixes

* Move currency reference creartion to ff_currency.

* Use standard function for conversion

* Revert "Use standard function for conversion"

This reverts commit 9ac5a94c55476400f425703192d48e8211b1b1dc.

* Use standard function - 2

* Replace clock records with ff_clock module

* Fix clock type

* More review fixes

* Revert "More review fixes"

This reverts commit a75707eace1fdc41668755d62d0130054beda7aa.

* More review fixes

* Add NOTE to deposite test

* Move clock selection to ff_postings_transfer

* Fix spec for clock/1
2019-10-14 14:16:30 +03:00
Andrey Fadeev
89f1d570a7
FF-77 Use party_client for PartyManagement calls (#127)
* Rename ff_ctx to ff_entity_context
* Add runtime context and pass it through all woody handlers
* Add party_client usage
2019-10-07 11:45:00 +03:00
Andrey Fadeev
9e899397e7
FF-77 Another try to rewrite transfers (#123)
* Extract deposit from ff_transfer
* Extract withdrawal from ff_transfer
* Remove ff_transfer
* Add deposit revert
* Add adjustments
2019-09-24 17:06:17 +03:00
Andrew Mayorov
f849b9d4b0
Fix one more place w/ healthcheck setup (#115) 2019-08-22 17:33:39 +03:00
Sergey Yelin
0721abeb78
Upgrade Erlang and deps 2019-06-27 18:58:45 +03:00
Артем
bb73cc2edd
FF-69: Internal ExpiresAt (#67) 2019-02-26 15:38:19 +03:00
Артем
0f506bd4e8
Mock test on WAPI (#65) 2019-02-21 17:34:37 +03:00
Evgeny Levenets
27bea54b03
DC-104: withdrawals routing (#54)
* DC-104: withdrawals routing

shittycode typhoon

* linter fix

* renaming

* remove default IdentityID

* postmerge fix

* better identity IDs in tests
2019-02-04 13:09:42 +03:00
Alexey
487cfaf843
DC-111: Add subagent account (#56) 2019-02-01 12:08:46 +03:00
Артем
4aeeaefd48
FF-43: Reporter (#53) 2019-01-22 15:48:28 +03:00
Andrew Mayorov
6001bfd993
Bound session poll timeouts during withdrawal processing (#50) 2019-01-17 11:52:58 +03:00
Артем
cf18e94465
FF-23: Woody retries (#44) 2018-12-13 11:29:18 +03:00
Andrey Fadeev
6d30750423
FF-30 Add currency selector to provider fee (#45)
Add missed currency to provider settings
2018-12-03 19:35:26 +03:00
Артем
cbf1e08674
CAPI-317: Fistful stat (#37) 2018-11-21 12:19:40 +03:00
Артем
6b46a23076
FF-20: Session eventsink (#35) 2018-11-15 14:32:50 +03:00
Артем
f1901a79cc
FF-19: Destination eventsink (#34) 2018-11-09 14:38:05 +03:00
Артем
58c1dbe319
HG-384: New eventsinks (#23) 2018-11-02 17:21:59 +06:00
Andrey Fadeev
720a2e6549
FF-7 Add lazy account reading (#24)
Use a system account only if it was used in the cashflow.
Use a separate account for each currency
2018-10-25 19:51:09 +03:00
Andrey Fadeev
8f1383a4f0
FF-7 Add cash flow and fee (#20) 2018-10-19 13:34:47 +03:00
Anton Belyaev
9f27ef35ef
FF-2: add deposit api and refactor ff_withdrawal (#14)
* FF-2: refactor ff_withdrawal
- introduce ff_transfer_machine and new ff_transfer as an underlying process
  for any withdrawal, deposit and transfer between wallets.
- rename apps/ff_withdraw -> apps/ff_transfer and make corresponding updates
  including sys.config.
- rename fistful/src/ff_transfer.erl -> fistful/src/ff_postings_transfer.erl
* Introduce ff_instrument as an underlying abstruction for ff_destination and ff_source.
* Add ff_deposit
* Add ff_source
* Add FistfulAdmin thrift service
* Add transfer migration code
2018-10-05 14:19:46 +03:00
Anton Belyaev
f74a1114e3
Add multiple withdrawal adapters support (#12)
* Remove wallet specifics from the transfer
* Add support for multiple withdrawal adapters;
* Switch tests to proxy-mocketbank
* Bump swag to rbkmoney/swag-wallets@745b5ad
2018-09-25 14:25:00 +03:00
Anton Belyaev
8d040b6868
CAPI-292: add seadlines support to wapi (#11) 2018-09-04 19:48:19 +03:00
Anton Belyaev
5834dd48d1
Fix integration issues (#6) 2018-07-08 19:58:55 +03:00
Anton Belyaev
c79954c062
Add implicit woody context (#4) 2018-07-06 18:11:59 +03:00
Anton Belyaev
623197fba5
Nail wapi app here for a while 2018-07-06 16:49:30 +03:00
Andrey Mayorov
76093ae516 [WIP] Setup ff_server application 2018-07-05 13:57:59 +03:00
Andrey Mayorov
8102caebfc [WIP] Expand provider / class / level definitions 2018-06-21 20:02:37 +03:00
Andrey Mayorov
f882531711 wip 2018-06-13 16:43:48 +03:00