Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

切换至中文

To create WeChat work app:

...

(2)Intall weChatToolKits.war(DownLoad

Supplement: If the click fails, please right-click to copy the link, paste in the new window and download

(3)Set a trusted domain, which can be used as the callback domain name for app's OAuth2.0-based webpage authorization feature.

...

Browse directory:weChatToolKits

Supplement: If Jira deploys https, then the transit server needs to support https, please modify the configuration information under webapps\weChatToolKits\WEB-INF\config.properties:

...

Step2:Sign in your https://work.weixin.qq.com

...

Request token URL fill in: Jira system baseUrl + /plugins/servlet/oauth/request-token
Access token URL fill in: Jira system baseUrl + /plugins/servlet/oauth/access-token
Fill in the authentication URL: Jira system baseUrl + /plugins/servlet/oauth/oauth/authorize

consumer Key must be consistent with the content in the basic service configuration, as shown below:

...

When you are done,Do not check to create incoming links, click continue. Get an application link that looks like this:

...

Where, the consumer key and the consumer name should be set to the same as the consumer Key in a window.
The publickey (publickey) should be copied from the jira_publickey.pem file (You need to get rid of the newline in jira_publickey.pem first. The public key should be a continuous, newline-free string);

Expand
titleAbout RSA public/private key pairs info:

On your PC, install openssl environment. Run the following openssl command:

openssl genrsa -out jira_privatekey.pem 1024
openssl req -newkey rsa:1024 -x509 -key jira_privatekey.pem -out jira_publickey.cer -days 365
openssl pkcs8 -topk8 -nocrypt -in jira_privatekey.pem -out jira_privatekey.pcks8
openssl x509 -pubkey -noout -in jira_publickey.cer> jira_publickey.pem

After running the above command, several files are generated. Where, the file jira_privatekey.pcks8 contains the privatekey; The publickey is stored in the jira_publickey.pem file.

View file
name公私钥.zip

...

Customer callback URL filling: Forwarding service address + /page/getAccessToken.
When you have finished typing, click Continue. The application link is created.

...