ringecosystem / xapi-offchain

0 stars 0 forks source link

Support offchain API key #7

Closed jiguantong closed 1 month ago

jiguantong commented 1 month ago

Aggregator Contract

Datasource. auth

path: 
header:Authorization          // Authorization:xxx
query:token                          // [xxx.com?token=xxx](http://xxx.com/?token=xxx)
body:authorization.token    // {"authorization": {"token": "xxx"}}

value: env:SOME_TOKEN

Reporter node

Check auth and throw error if no auth value

jiguantong commented 1 month ago

https://github.com/ringecosystem/xapi-contracts/pull/7