WeChat.Plug.HubSpringboard (wechat v0.9.0) View Source

OAuth2 跳板 - 用于 Hub Server

由于微信对于网页授权有域名校验,需要在除指定域名外的域名也支持网页授权,可以使用此跳板

Usage

将下面的代码加到 router 里面:

# for normal
get "/:app/:env/cb/*callback_path", WeChat.Plug.HubSpringboard, clients: [Client, ...]

# for work
get "/:app/:agent/:env/cb/*callback_path", WeChat.Plug.HubSpringboard, clients: [Client, ...]

Link to this section Summary

Link to this section Functions

Link to this function

oauth2_callback(conn, client, agent, env, callback_path)

View Source