Tag: Oauth2

  • Post Views: 20 1. Problems When using a self-built VPN scheme (Wstunnel + Wireguard + Clash Verge Rev), I found that Thunderbird cannot send mail through Gmail, and the error is as follows: At the same time,Access via browser https://mail.google.com But completely normal. This means that the VPN itself can connect to Google, and the problem is that the traffic…

  • Post Views: 16 1. After enabling 2FA two-factor authentication, git.exe pull –progress -v –no-rebase “origin” Remote: HTTP Basic: Access Denied Remote: You must use a personal access token withREAD_REpositoryOrwrite_repositoryScope for git over http. Remote: You can generate one athttps://xxx.com/-/profile/personal_access_tokens Fatal: Authentication failed forhttps://xxx.com/xgrit/object.git/ Git failed to end smoothly (exit code 1) (5344 ms @ 2022/6/29 10:42:11). as shown in Figure…

  • Post Views: 46 1. Open the URL in the browser: http://api.channel-pub-api.localhost/qq/v1/OA uth2/authorize?group_id=015ce30b116ce86058fa6ab4fea4ac63 , which responds to the XML format, because RESTful APIs support both JSON and XML formats. But HTML format is not supported. as shown in Figure 1 2. Open in postman, the value of accept is: application/json; version=0.0, respond to json format, as shown in Figure 2 3.…

  • Post Views: 11 1. Based onhttps://github.com/Filsh/yii2-oauth2-server实现; Run: php composer.phar require –prefer-dist filsh/yii2-oauth2-server “*” 2. Configure in the application: E:\wwwroot\api.hmwis.com\passport\config\main.php Modules=>[ oauth2=> [ class=>FILSH\Yii2\OAuth2Server\Module, tokenparamname=>accessToken, TokenAccessLifeTime=> 3600 * 24, StorageMap=> [ user_credentials=>common\models\user, ]#ATFP_CLOSE_Translate_span#, GrantTypes=>[ user_credentials=> [ class=>oauth2\grantType\usercredentials, ]#ATFP_CLOSE_Translate_span#, refresh_token=>[ class=>oauth2\grantType\refreshtoken, Always_issue_new_refresh_token=> true ]#ATFP_CLOSE_Translate_span# ] ], v1=>[ class=>passport\modules\v1\module, ]#ATFP_CLOSE_Translate_span#, ], 3. Edit the user model class User.php: E:\wwwroot\api.hmwis.com\common\models\user.php Implement the interface\OAuth2\Storage\UserCredentialsInterface Class…

  • Post Views: 12 1. The address of the REST API application with OAuth2 Server on Yii2:https://github.com/ikaras/yii2-oauth2-rest-template 2. Run the command: php application/api/yiic migrate –migrationpath=@vendor/filsh/yii2-oauth2-server/migrations –interactive=0 \ Error: 3. Modify the file: \yii2-oauth2-rest-template\vendor\filsh\yii2-oaut h2-server\migrations\m140501_075311_add_oauth2_server.php 4. Run the command again: php application/api/yiic migrate –migrationpath=@vendor/filsh/yii2-oauth2-server/migrations –interactive=0\ , normal operation:

👨‍💻 Personal Brand

Wang Shiqiang | PHP & Go Technical Consultant

15+ years of backend development experience specializing in system maintenance, architecture optimization, performance tuning, and Linux administration.

Technical blogger since 2013 with 1,000+ original articles.

Available for consulting, long-term maintenance, and remote collaboration.

👉 About Me & Contact

.env (14) 404 (13) add (17) Aliyun (19) Apache (13) Array (19) browser (14) Cache (13) CentOS (23) chrome (18) Client (11) command line (13) composer (42) composer.json (22) composer install (13) composer update (14) console (14) Container (25) curl (15) Database (11) database migration (16) delete (32) Docker (31) Dockerfile (15) ECS (12) environment variable (20) error (24) escape (12) Failed (13) file (16) filter (20) fopen (11) FORMAT (12) function (13) Git (27) GitHub (16) Gitlab (15) Go (34) Go 1.26 (12) GraphQL (24) GraphQL API (14) hosts (11) http (21) https (20) Installation (13) Interface (19) Jenkins (12) Jquery (13) json (24) Laravel (36) Laravel 6 (56) Laravel 9 (25) Lighthouse (17) Lighthouse 5 (14) Linux (15) Memory (11) Migrate (13) Migration (11) Module (17) MySQL (76) MySQL 5.7 (21) Nginx (45) Node.js (12) normalize.css (29) OKX (15) PHP (63) php.ini (24) PHP 7.1.12 (22) PHP 7.4 (26) phpmyadmin (15) PhpStorm (24) Polylang (24) postman (18) Query (17) queue (16) Rancher (24) Redis (38) Refactoring (12) require (12) response (13) RESTful (27) RESTful API (23) rules (12) setting (12) Shell (13) Shopify (19) Shopify CLI (12) SQL (24) String (15) TortoiseGit (15) Ubuntu (35) update (20) VPN (13) Windows 10 (46) WireGuard (22) WordPress (48) Wstunnel (11) Yii (40) Yii 2 (70) Yii 2.0 (51)

June 2026
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930