fistful-server/rebar.lock
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

199 lines
7.9 KiB
Erlang

{"1.1.0",
[{<<"base64url">>,{pkg,<<"base64url">>,<<"0.0.1">>},0},
{<<"bear">>,{pkg,<<"bear">>,<<"0.8.7">>},3},
{<<"bender_client">>,
{git,"git@github.com:rbkmoney/bender_client_erlang.git",
{ref,"35c34ea7ee2c00c4d7554e16704889fe2b6eba34"}},
0},
{<<"bender_proto">>,
{git,"git@github.com:rbkmoney/bender-proto.git",
{ref,"d765b9dfeb89d6eefccb947356dab85fbff592a9"}},
0},
{<<"binbase_proto">>,
{git,"git@github.com:rbkmoney/binbase-proto.git",
{ref,"d0e136deb107683fc6d22ed687a1e6b7c589cd6d"}},
0},
{<<"cache">>,{pkg,<<"cache">>,<<"2.2.0">>},1},
{<<"cds_proto">>,
{git,"git@github.com:rbkmoney/cds-proto.git",
{ref,"dfa135410d6e186a067acc9afda5ebbf4b454fb7"}},
0},
{<<"certifi">>,{pkg,<<"certifi">>,<<"2.5.1">>},1},
{<<"cg_mon">>,
{git,"https://github.com/rbkmoney/cg_mon.git",
{ref,"5a87a37694e42b6592d3b4164ae54e0e87e24e18"}},
1},
{<<"cowboy">>,{pkg,<<"cowboy">>,<<"2.7.0">>},0},
{<<"cowboy_access_log">>,
{git,"git@github.com:rbkmoney/cowboy_access_log.git",
{ref,"157e1f798115cf216a82344dbf21b1d111d6505f"}},
0},
{<<"cowboy_cors">>,
{git,"https://github.com/rbkmoney/cowboy_cors.git",
{ref,"62f24fa78cd48e80a9aba86b508d1b160a2737e9"}},
0},
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.8.0">>},1},
{<<"damsel">>,
{git,"git@github.com:rbkmoney/damsel.git",
{ref,"5515c0d3a28771da688d57980109e360a529a324"}},
0},
{<<"dmt_client">>,
{git,"git@github.com:rbkmoney/dmt_client.git",
{ref,"32b702a6a25b4019de95e916e86f9dffda3289e3"}},
0},
{<<"dmt_core">>,
{git,"git@github.com:rbkmoney/dmt_core.git",
{ref,"8ac78cb1c94abdcdda6675dd7519893626567573"}},
1},
{<<"email_validator">>,
{git,"https://github.com/rbkmoney/email_validator.git",
{ref,"be90c6ebd34d29fa9390136469b99d8a68ad4996"}},
0},
{<<"erl_health">>,
{git,"https://github.com/rbkmoney/erlang-health.git",
{ref,"406fdd367bc085eec48e2337dad63a86ef81acd3"}},
0},
{<<"erlang_localtime">>,
{git,"https://github.com/kpy3/erlang_localtime",
{ref,"c79fa7dd454343e7cbbdcce0c7a95ad86af1485d"}},
0},
{<<"file_storage_proto">>,
{git,"git@github.com:rbkmoney/file-storage-proto.git",
{ref,"ff9ce324941e88759ab1d53ce53dd4ecfe21a021"}},
0},
{<<"fistful_proto">>,
{git,"git@github.com:rbkmoney/fistful-proto.git",
{ref,"8f2e52480fb32c4a91fb83a28bdc115ff06057bc"}},
0},
{<<"fistful_reporter_proto">>,
{git,"git@github.com:rbkmoney/fistful-reporter-proto.git",
{ref,"8bec5e6c08c8b43ba606a62fa65d164b07d3de96"}},
0},
{<<"folsom">>,
{git,"https://github.com/folsom-project/folsom.git",
{ref,"eeb1cc467eb64bd94075b95b8963e80d8b4df3df"}},
2},
{<<"genlib">>,
{git,"https://github.com/rbkmoney/genlib.git",
{ref,"6601a9f1cfd4bce566f0bd0016fdee5a26c8818c"}},
0},
{<<"gproc">>,{pkg,<<"gproc">>,<<"0.8.0">>},0},
{<<"gun">>,
{git,"https://github.com/ninenines/gun.git",
{ref,"e7dd9f227e46979d8073e71c683395a809b78cb4"}},
1},
{<<"hackney">>,{pkg,<<"hackney">>,<<"1.15.1">>},0},
{<<"how_are_you">>,
{git,"https://github.com/rbkmoney/how_are_you.git",
{ref,"8f11d17eeb6eb74096da7363a9df272fd3099718"}},
1},
{<<"id_proto">>,
{git,"git@github.com:rbkmoney/identification-proto.git",
{ref,"1ccb06388c9d717e942046facaf32c0c816d6f69"}},
0},
{<<"identdocstore_proto">>,
{git,"git@github.com:rbkmoney/identdocstore-proto.git",
{ref,"ccd301e37c128810c9f68d7a64dd8183af91b2bf"}},
0},
{<<"idna">>,{pkg,<<"idna">>,<<"6.0.0">>},1},
{<<"jesse">>,
{git,"https://github.com/rbkmoney/jesse.git",
{ref,"723e835708a022bbce9e57807ecf220b00fb771a"}},
0},
{<<"jiffy">>,
{git,"git@github.com:davisp/jiffy.git",
{ref,"ba09da790477b0f7a31aeaa9b21cae0ffba27d77"}},
0},
{<<"jose">>,{pkg,<<"jose">>,<<"1.9.0">>},0},
{<<"jsx">>,{pkg,<<"jsx">>,<<"2.8.2">>},0},
{<<"lechiffre">>,
{git,"git@github.com:rbkmoney/lechiffre.git",
{ref,"da3ca720b1f226a0e4811d4b205a6085ff31b150"}},
0},
{<<"libdecaf">>,
{git,"https://github.com/ndiezel0/erlang-libdecaf.git",
{ref,"2e9175794945c1e19495cc7f52d823380d81cdb4"}},
0},
{<<"machinery">>,
{git,"git@github.com:rbkmoney/machinery.git",
{ref,"d1b3d96f3dc55da801dc25eb974817e4d0c912d1"}},
0},
{<<"metrics">>,{pkg,<<"metrics">>,<<"1.0.1">>},1},
{<<"mg_proto">>,
{git,"https://github.com/rbkmoney/machinegun_proto.git",
{ref,"ebae56fe2b3e79e4eb34afc8cb55c9012ae989f8"}},
1},
{<<"mimerl">>,{pkg,<<"mimerl">>,<<"1.2.0">>},1},
{<<"msgpack_proto">>,
{git,"git@github.com:rbkmoney/msgpack-proto.git",
{ref,"946343842ee740a19701df087edd1f1641eff769"}},
1},
{<<"parse_trans">>,
{git,"https://github.com/rbkmoney/parse_trans.git",
{ref,"5ee45f5bfa6c04329bea3281977b774f04c89f11"}},
0},
{<<"party_client">>,
{git,"git@github.com:rbkmoney/party_client_erlang.git",
{ref,"31defb8725a666198f98e50d9b4cbccd09676816"}},
0},
{<<"payproc_errors">>,
{git,"git@github.com:rbkmoney/payproc-errors-erlang.git",
{ref,"77cc445a4bb1496854586853646e543579ac1212"}},
0},
{<<"quickrand">>,{pkg,<<"quickrand">>,<<"1.7.3">>},1},
{<<"ranch">>,{pkg,<<"ranch">>,<<"1.7.1">>},1},
{<<"rfc3339">>,{pkg,<<"rfc3339">>,<<"0.2.2">>},0},
{<<"scoper">>,
{git,"git@github.com:rbkmoney/scoper.git",
{ref,"f2ac9c0b4e98a49a569631c3763c0585ec76abe5"}},
0},
{<<"shumpune_proto">>,
{git,"git@github.com:rbkmoney/shumpune-proto.git",
{ref,"4c87f03591cae3dad41504eb463d962af536b1ab"}},
0},
{<<"snowflake">>,
{git,"https://github.com/rbkmoney/snowflake.git",
{ref,"0a598108f6582affe3b4ae550fc5b9f2062e318a"}},
1},
{<<"ssl_verify_fun">>,{pkg,<<"ssl_verify_fun">>,<<"1.1.4">>},1},
{<<"thrift">>,
{git,"https://github.com/rbkmoney/thrift_erlang.git",
{ref,"d393ef9cdb10f3d761ba3a603df2b2929dc19a10"}},
1},
{<<"uac">>,
{git,"https://github.com/rbkmoney/erlang_uac.git",
{ref,"c8c7013172c1b3c04b0c601bdc1c042196bf3717"}},
0},
{<<"unicode_util_compat">>,{pkg,<<"unicode_util_compat">>,<<"0.4.1">>},2},
{<<"uuid">>,{pkg,<<"uuid_erl">>,<<"1.7.3">>},0},
{<<"woody">>,
{git,"git@github.com:rbkmoney/woody_erlang.git",
{ref,"8b8c0e27796a6fc8bed4f474313e4c3487e10c82"}},
0},
{<<"woody_user_identity">>,
{git,"git@github.com:rbkmoney/woody_erlang_user_identity.git",
{ref,"0feebda4f7b4a9b5ee93cfe7b28d824a3dc2d8dc"}},
0}]}.
[
{pkg_hash,[
{<<"base64url">>, <<"36A90125F5948E3AFD7BE97662A1504B934DD5DAC78451CA6E9ABF85A10286BE">>},
{<<"bear">>, <<"16264309AE5D005D03718A5C82641FCC259C9E8F09ADEB6FD79CA4271168656F">>},
{<<"cache">>, <<"3C11DBF4CD8FCD5787C95A5FB2A04038E3729CFCA0386016EEA8C953AB48A5AB">>},
{<<"certifi">>, <<"867CE347F7C7D78563450A18A6A28A8090331E77FA02380B4A21962A65D36EE5">>},
{<<"cowboy">>, <<"91ED100138A764355F43316B1D23D7FF6BDB0DE4EA618CB5D8677C93A7A2F115">>},
{<<"cowlib">>, <<"FD0FF1787DB84AC415B8211573E9A30A3EBE71B5CBFF7F720089972B2319C8A4">>},
{<<"gproc">>, <<"CEA02C578589C61E5341FCE149EA36CCEF236CC2ECAC8691FBA408E7EA77EC2F">>},
{<<"hackney">>, <<"9F8F471C844B8CE395F7B6D8398139E26DDCA9EBC171A8B91342EE15A19963F4">>},
{<<"idna">>, <<"689C46CBCDF3524C44D5F3DDE8001F364CD7608A99556D8FBD8239A5798D4C10">>},
{<<"jose">>, <<"4167C5F6D06FFAEBFFD15CDB8DA61A108445EF5E85AB8F5A7AD926FDF3ADA154">>},
{<<"jsx">>, <<"7ACC7D785B5ABE8A6E9ADBDE926A24E481F29956DD8B4DF49E3E4E7BCC92A018">>},
{<<"metrics">>, <<"25F094DEA2CDA98213CECC3AEFF09E940299D950904393B2A29D191C346A8486">>},
{<<"mimerl">>, <<"67E2D3F571088D5CFD3E550C383094B47159F3EEE8FFA08E64106CDF5E981BE3">>},
{<<"quickrand">>, <<"0E4FB48FAC904FE0C6E21D7E8C31A288A0700E1E81A35B38B649FC119079755D">>},
{<<"ranch">>, <<"6B1FAB51B49196860B733A49C07604465A47BDB78AA10C1C16A3D199F7F8C881">>},
{<<"rfc3339">>, <<"1552DF616ACA368D982E9F085A0E933B6688A3F4938A671798978EC2C0C58730">>},
{<<"ssl_verify_fun">>, <<"F0EAFFF810D2041E93F915EF59899C923F4568F4585904D010387ED74988E77B">>},
{<<"unicode_util_compat">>, <<"D869E4C68901DD9531385BB0C8C40444EBF624E60B6962D95952775CAC5E90CD">>},
{<<"uuid">>, <<"C5DF97D1A3D626235C2415E74053C47B2138BB863C5CD802AB5CAECB8ECC019F">>}]}
].