GithubHelp home page GithubHelp logo

bineyond / wechattokenserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wuqtao/wechattokenserver

0.0 1.0 0.0 30 KB

基于fasthttp的微信公众号或者小程序accesstoken的管理服务器,具有支持多应用,支持白名单,支持配置热加载,无需外部缓存等特点

Go 100.00%

wechattokenserver's Introduction

wechatTokenServer

基于fasthttp的微信开发者方便使用的accesstoken管理工具,无需配置redis或者memcached等工具,程序内部自持并保证定时更新accesstoken
1.接口/query?appid=&token=,提供接口查询最新有效的accesstoken
2.接口/update?appid=&token,强制更新某appid的accesstoken
3.接口/reload?token=,提供热加载配置文件,用于添加或者删除appid配置,以及其他配置更改,如果修改了appsecret则重载后立即刷新accessToken,否则正常刷新

支持每个微信配置单独配置若干个accessToken更新通知url,在每次accessToken更新后会请求指定url,post参数:accessToken,updateTime,expires_in

接口1,2共用ip白名单,接口3为高级权限接口,单独使用ip白名单
需要注意的是,如果使用nginx配置域名转发,则ip白名单会失效(请求ip地址变成nginx机器的地址)

wechattokenserver's People

Contributors

bineyond avatar wuqtao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.