All Projects → 1046102779 → wx_relay_server

1046102779 / wx_relay_server

Licence: other
微信公众号第三方平台中继服务器,用于刷新公众号平台自身的token和托管的公众号token, 使开发者只关注微信公众号第三方平台的业务逻辑,同时业务实例可以反复重启,不会对已托管的公众号造成任何影响

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to wx relay server

snapdragon-lexer
Converts a string into an array of tokens, with useful methods for looking ahead and behind, capturing, matching, et cetera.
Stars: ✭ 19 (-53.66%)
Mutual labels:  token
cognito-jwt-verifier
Verify ID and access JWT tokens from AWS Cognito in your node/Lambda backend with minimal dependencies.
Stars: ✭ 25 (-39.02%)
Mutual labels:  token
cdk-py-k8s-the-real-hard-way-aws
Python CDK code for "Kubernetes The (real) Hard Way (AWS)"
Stars: ✭ 14 (-65.85%)
Mutual labels:  etcd
etcdenv
Use your etcd keys as environment variables
Stars: ✭ 23 (-43.9%)
Mutual labels:  etcd
Key-Checker
Go scripts for checking API key / access token validity
Stars: ✭ 190 (+363.41%)
Mutual labels:  token
conduit
Conduit - Open Source 0x Relayer API implemented in NodeJS
Stars: ✭ 18 (-56.1%)
Mutual labels:  token
etcd3-py
Pure python client for etcd v3 (Using gRPC-JSON-Gateway)
Stars: ✭ 97 (+136.59%)
Mutual labels:  etcd
docker-compose-etcd
demo: etcd destributed key-value store
Stars: ✭ 23 (-43.9%)
Mutual labels:  etcd
Simple-Game-ERC-721-Token-Template
🔮 Very Simple ERC-721 Smart Contract Template to create your own ERC-721 Tokens on the Ethereum Blockchain, with many customizable Options 🔮
Stars: ✭ 83 (+102.44%)
Mutual labels:  token
tokenbridge
A bidirectional Ethereum / RSK Token Bridge implementation.
Stars: ✭ 85 (+107.32%)
Mutual labels:  token
xm-spring-boot
Spring Boot 基础项目
Stars: ✭ 33 (-19.51%)
Mutual labels:  token
EOS-Proxy-Token
Proxy token to allow mitigating EOSIO Ram exploit
Stars: ✭ 22 (-46.34%)
Mutual labels:  token
kube-install
一鍵安裝部署高可用的多kubernetes集羣(二進位離線方式),支持定時安裝、添加與銷毀node、銷毀與修復master、一鍵卸載集羣等。One click offline installation of highly available multiple kubernetes cluster, supports schedule installation, addition of nodes, rebuild of kubernetes master, and uninstallation of clusters.
Stars: ✭ 336 (+719.51%)
Mutual labels:  etcd
kstone
Kstone is an etcd management platform, providing cluster management, monitoring, backup, inspection, data migration, visual viewing of etcd data, and intelligent diagnosis.
Stars: ✭ 592 (+1343.9%)
Mutual labels:  etcd
grpclb
A gRPC load balancer and service discovery for go
Stars: ✭ 22 (-46.34%)
Mutual labels:  etcd
ethereum-crowdsale
0xcert protocol crowdsale contracts for Ethereum blockchain.
Stars: ✭ 15 (-63.41%)
Mutual labels:  token
vault-token-helper
@hashicorp Vault Token Helper for macOS, Linux and Windows with support for secure token storage and multiple Vault servers 🔐
Stars: ✭ 74 (+80.49%)
Mutual labels:  token
vue-token
Simple token storage/ authorization in vuejs.
Stars: ✭ 13 (-68.29%)
Mutual labels:  token
e2d
gossip-based etcd manager
Stars: ✭ 30 (-26.83%)
Mutual labels:  etcd
token-authentication-django
This is django app used to explain the tutorial present on https://medium.com/@shubhambansal_89125/token-based-authentication-for-django-rest-framework-44586a9a56fb
Stars: ✭ 27 (-34.15%)
Mutual labels:  token

微信中继服务器

目的:其他服务采用pull模式,通过rpcx进行rpc通信,获取相关微信token. 用户微信公众号第三方平台刷公众号平台和托管的公众号appid的相关token, 该服务不能停超过10分钟(实例自动拉起crontab). 主要刷公众号第三方平台的component_access_token和preauthcode, 公众号的authorizer_access_token和authorizer_refresh_token

好处:微信公众号第三方平台中继服务器,用于刷新公众号平台自身的token和托管的公众号token, 使开发者只关注微信公众号第三方平台的业务逻辑,同时业务实例可以反复重启,不会对已托管的公众号造成任何影响

存储方式:etcd存储rpc服务地址和微信公众号平台和公众号token, 使用etcd的ttl特性,并watch并刷新

新增服务的可靠性措施

1. 服务启动后,立即读取etcd中的所有微信公众平台和公众号数据,加载到内存中。 并监听所有token

Standard go get:

$  go get -v -u github.com/1046102779/wx_relay_server

Index

type WxRelayServer struct{}

// 获取公众号平台基本信息,包括appid,token等信息
func (t *WxRelayServer) GetOfficialAccountPlatformInfo(in *pb.OfficialAccountPlatform, out *pb.OfficialAccountPlatform) error

// 存储托管公众号的token相关信息
func (t *WxRelayServer) StoreOfficialAccountInfo(in *pb.OfficialAccount, out *pb.OfficialAccount) error

// 获取公众号token信息, 用于公众号第三方平台发起公众号的托管业务
func (t *WxRelayServer) GetOfficialAccountInfo(in *pb.OfficialAccount, out *pb.OfficialAccount) error

// 刷新component_verify_ticket, 并同时中继服务器刷公众号第三方平台的其他token
func (t *WxRelayServer) RefreshComponentVerifyTicket(in *pb.ComponentVerifyTicket, out *pb.ComponentVerifyTicket) error

说明

  • 希望与大家一起成长,有任何该服务运行或者代码问题,可以及时找我沟通,喜欢开源,热爱开源, 欢迎多交流
  • 联系方式:[email protected]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].