Commit Graph

9 Commits

Author SHA1 Message Date
WWW_cool
b659e1491c updated from fistful master 2020-09-24 17:41:07 +03:00
WWW_cool
30f1e698a5 minor 2020-09-17 17:43:00 +03:00
WWW_cool
6404b891a3 Merge remote-tracking branch 'github/master' into FF-40/ft/wapi_in_new_repo
# Conflicts:
#	apps/ff_cth/src/ct_payment_system.erl
#	apps/ff_server/src/ff_identity_codec.erl
#	apps/ff_server/src/ff_identity_machinery_schema.erl
#	apps/ff_server/test/ff_deposit_handler_SUITE.erl
#	apps/ff_server/test/ff_destination_handler_SUITE.erl
#	apps/ff_server/test/ff_eventsink_SUITE.erl
#	apps/ff_server/test/ff_identity_handler_SUITE.erl
#	apps/ff_server/test/ff_p2p_template_handler_SUITE.erl
#	apps/ff_server/test/ff_p2p_transfer_handler_SUITE.erl
#	apps/ff_server/test/ff_source_handler_SUITE.erl
#	apps/ff_server/test/ff_w2w_transfer_handler_SUITE.erl
#	apps/ff_server/test/ff_wallet_handler_SUITE.erl
#	apps/ff_server/test/ff_withdrawal_handler_SUITE.erl
#	apps/ff_server/test/ff_withdrawal_session_repair_SUITE.erl
#	apps/ff_transfer/src/ff_instrument.erl
#	apps/ff_transfer/src/ff_withdrawal_session.erl
#	apps/ff_transfer/test/ff_deposit_SUITE.erl
#	apps/ff_transfer/test/ff_deposit_adjustment_SUITE.erl
#	apps/ff_transfer/test/ff_deposit_revert_SUITE.erl
#	apps/ff_transfer/test/ff_deposit_revert_adjustment_SUITE.erl
#	apps/ff_transfer/test/ff_transfer_SUITE.erl
#	apps/ff_transfer/test/ff_withdrawal_SUITE.erl
#	apps/ff_transfer/test/ff_withdrawal_adjustment_SUITE.erl
#	apps/ff_transfer/test/ff_withdrawal_routing_SUITE.erl
#	apps/fistful/src/ff_identity.erl
#	apps/fistful/test/ff_identity_SUITE.erl
#	apps/fistful/test/ff_wallet_SUITE.erl
#	apps/p2p/test/p2p_quote_SUITE.erl
#	apps/p2p/test/p2p_template_SUITE.erl
#	apps/p2p/test/p2p_tests_utils.erl
#	apps/p2p/test/p2p_transfer_adjustment_SUITE.erl
#	apps/w2w/test/w2w_adjustment_SUITE.erl
#	apps/w2w/test/w2w_transfer_SUITE.erl
#	apps/wapi/src/wapi_p2p_quote.erl
#	apps/wapi/src/wapi_wallet_ff_backend.erl
#	apps/wapi/src/wapi_wallet_handler.erl
#	apps/wapi/src/wapi_wallet_thrift_handler.erl
#	apps/wapi/src/wapi_withdrawal_backend.erl
#	apps/wapi/src/wapi_withdrawal_quote.erl
2020-09-16 11:15:28 +03:00
Alexey
911d4d39da
FF-222: Identity name via thrift (#295) 2020-09-15 11:04:05 +03:00
WWW_cool
ed35865617 fixed and refactored 2020-09-14 15:58:11 +03:00
Артем
400cbb19a4
FF-208: Update wallet thrift api (#281)
* added get wallet by external id and get account API methods

* fixed

* refactored mock

* fixed

* fixed bender mock

Co-authored-by: Andrey Fadeev <me@ciiol.net>
2020-08-24 19:11:26 +03:00
Артем
e558a129e0
FF-159: New states (#204)
* WIP

* fixed compile errors

* fixed dialyzer and tests

* improved types

* added migration for create at

* added meta

* fixed

* fixed codecs and handlers

* fixed tests

* reverted version delete

* fixed tests

* minor

* minor

* added migration to session identity

* added metadata migration

* fixed

* added wapi support for metadata

* fixed

* fixed

* added some fixes

* minor

* fixed

* updated proto
2020-06-02 16:18:39 +03:00
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
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