Get the App
SLTechnology News&Howtos  ›  Development  › 

How to configure Jspxcms third-party login

Shulou Source: shulou.com Published: 2022-06-02 01:29:03 10月04日 Update

This article Xiaobian for you to introduce in detail "Jspxcms third-party login how to configure", the content is detailed, the steps are clear, the details are handled properly, I hope this "Jspxcms third-party login how to configure" article can help you solve doubts, following the editor's ideas slowly in-depth, together to learn new knowledge.

Third-party login supports Sina Weibo, Tencent QQ and Wechat. When using a third-party login, you need to apply for an account on the Weibo open platform, QQ interconnection and Wechat open platform, activate the third-party login feature, and obtain APP ID and APP KEY. Then modify the Jspxcms configuration file, fill in the acquired APP ID and APP KEY, and restart Tomcat. If you use the default template that comes with the system, you also need to change the value of third-party login to enable on the background system-system Settings-Custom Settings page.

Login on Sina Weibo

Enter the Weibo open platform, click the website to access, and operate as required to obtain App Key and App Secret.

Modify the / WEB-INF/classes/config.properties file. Redirect_URI is the callback address. Modify www.mysite.com to your actual domain name.

Client_ID=App Keyclient_SERCRET=App Secretredirect_URI= http://www.mysite.com/oauth/authc/weibo# 7.0 and earlier requires a .jspx suffix # redirect_URI= http://www.mysite.com/oauth/authc/weibo.jspx Tencent QQ login

Enter the QQ connection, click the website to access, and operate as required to obtain APP ID and APP KEY.

Modify the / WEB-INF/classes/qqconnectconfig.properties file. Redirect_URI is the callback address. Modify www.mysite.com to your actual domain name.

App_ID=APP IDapp_KEY=APP KEYredirect_URI= http://www.mysite.com/oauth/authc/qq# 7.0 and earlier requires a .jspx suffix # redirect_URI= http://www.mysite.com/oauth/authc/qq.jspx Wechat login

Enter the Wechat open platform, create website applications, operate as required, and obtain AppID and AppSecret.

Modify the / WEB-INF/classes/weixin.properties file. Oauth.weixin.redirect_uri is the callback address. Modify www.mysite.com to your actual domain name.

Oauth.weixin.appid=AppIDoauth.weixin.secret=AppSecretoauth.weixin.redirect_uri= http://www.mysite.com/oauth/authc/weixin# 7.0 and previous versions need to add the .jspx suffix # oauth.weixin.redirect_uri= http://www.mysite.com/oauth/authc/weixin.jspx to read here. This article "how to configure Jspxcms third-party login" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.

Tags: Login third party configuration platform file website open suffix address domain name actual article version system content Sina Tencent interconnection access proper Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS vpn Redmi Xiaomi