Casdoor will automatically skip this step when used in mobile scenario (aka the WeChat built-in browser inside WeChat mobile APP). It's notable that this is only available in PC login scenario because a mobile phone cannot scan the QR code by itself. If you fill in the second keypair ( Client ID 2, Client Secret 2) and enable the Enable QR code switch, when the user clicks on the WeChat button to log in, Casdoor will first ask the user to follow the WeChat official account (微信公众号), then continue the login process. This is a limitation of WeChat instead of Casdoor. It's notable that in the mobile scenario, WeChat itself doesn't support logging in outside of WeChat APP, like in other mobile browsers (H5) or APPs. It allows the user to log in with WeChat built-in browser inside WeChat mobile APP, it will jump to your WeChat Official Account (微信公众号) to log in. The second keypair ( Client ID 2, Client Secret 2) is for WeChat Media Platform (微信公众平台), it's only for the inside-WeChat-app login scenario. It can show QR code in PC browser and the user can use the WeChat APP in mobile phone to scan the code, so the PC browser will allow to sign in with WeChat. How do I connect WeChat to my computer Find Web WeChat in the top right menu (magic wand) on the Chats pane. The first keypair ( Client ID, Client Secret) is for WeChat Open Platform (微信开放平台), it's only for the PC login scenario. The WeChat provider offers two different sets of keypairs: After your web application or your mobile application is approved, then you get your App Id and App Secret. Visit WeChat developer platform, and register as a developer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |