# HADB/GetWeixinCode

解决微信OAuth2.0网页授权只能设置一个回调域名的问题

Repository: https://github.com/HADB/GetWeixinCode
Canonical: https://ross.abutalabs.com/products/getweixincode
Language: HTML
License: MIT
License Family: permissive
Topics: wechat
Last push: 2019-09-02T12:46:27+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3845, "days_push": 2557, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1449, forks 461 (observed 2026-08-28T04:04:45.592610+00:00)

## What it is
A single HTML page deployed under a WeChat OAuth2.0 authorized callback domain that forwards authorization codes to arbitrary redirect URIs. It works around WeChat's limit of one callback domain by adding an extra redirect hop.

## Use cases
- use one WeChat OAuth callback domain for multiple sites
- get WeChat web authorization code on a different domain
- centralize WeChat OAuth redirect handling
- deploy WeChat login across several subdomains
- avoid registering every project domain with WeChat

## When to choose
- you host multiple projects on different domains but can only register one WeChat callback domain
- you want a single place to handle WeChat OAuth redirects
- you need a lightweight, no-backend solution

## When to avoid
- WeChat already allows multiple authorized callback domains for your account
- you rely on a third-party WeChat platform that performs authorization mid-flow on its own pages
- you cannot tolerate the extra redirect hop's impact on user experience

## Facets
- artifact type: application
- maturity: maintenance
- function: auth, web-framework
- domain: web-development, apis, security
- platform: browser
- tags: wechat, oauth2, callback-domain, redirect-proxy, single-html-file, web-server

## Member repositories
- HADB/GetWeixinCode (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:45.592610+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:35:58.521655+00:00, confidence not recorded.
  - readme: https://github.com/HADB/GetWeixinCode (fetched 2026-08-28T04:04:45.592610+00:00, sha 0abcb9dbd0f8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
