ringecosystem / xapi-offchain

0 stars 0 forks source link

Support offchain API key #7

Closed jiguantong closed 2 weeks ago

jiguantong commented 3 weeks 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 3 weeks ago

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