hearthsim / twitch-hdt-ebs Goto Github PK
View Code? Open in Web Editor NEW๐ข Twitch Extension Backend Service for Hearthstone Deck Tracker.
๐ข Twitch Extension Backend Service for Hearthstone Deck Tracker.
Refs HearthSim/hdt-internal#43.
Example JWT:
{
"exp": 1506166024,
"opaque_user_id": "U123456789",
"user_id": "123456789",
"channel_id": "123456789",
"role": "broadcaster",
"pubsub_perms": {
"listen": [
"broadcast",
"whisper-U123456789"
],
"send": [
"*"
]
}
}
Using Jenkins/Travis or whatever, Including credential management.
Also add DNS to the Lambda.
Configuration might be anything set from the configuration endpoint.
The frontend needs to be able to POST to the setup endpoint. Since that's a cross-origin request, we'll need to expose the CORS-Headers when the browser sends a preflight CORS request without any Authorization.
The CORS preflight request looks something like this:
OPTIONS /dev/setup/ HTTP/1.1
Access-Control-Request-Method: GET
Access-Control-Request-Headers: authorization,x-twitch-client-id,x-twitch-extension-version,x-twitch-user-id
Origin: https://d72hk844mgvex3kbfhrgjtdoeqrh0t.ext-twitch.tv
The lambda should then respond with a response similar to this:
Access-Control-Allow-Origin: https://d72hk844mgvex3kbfhrgjtdoeqrh0t.ext-twitch.tv
Access-Control-Allow-Methods: POST
Access-Control-Allow-Headers: authorization,x-twitch-client-id,x-twitch-extension-version,x-twitch-user-id
Alternatively:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST
Access-Control-Allow-Headers: authorization,x-twitch-client-id,x-twitch-extension-version,x-twitch-user-id
This is blocked by the game_start
packet missing from the protocol right now.
RESTful methods to PUT/GET settings (authorized via JWT).
Append our JWT token to messages once validated and send to Twitch PubSub service.
Prove out how we start a new zappa project that we can continuously deploy, and that package HearthSim secrets and shared hearthsim-identities library.
To power the HSReplay.net features, we want to send the broadcasters with their deck to Redis.
Validate that the token HDT sends is a legitimate authenticated HSReplay.net user and is the owner of the Twitch channel they are string to publish too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.