recolic / micro-teaching-assistant-fucker

This is a read-only mirror for https://git.recolic.net/root/micro-teaching-assistant-fucker
Do What The F*ck You Want To Public License
36 stars 3 forks source link

API Authentication Changed #1

Closed klx3300 closed 5 years ago

klx3300 commented 5 years ago

Now direct POST to original signin API will result in a HTTP 302, which will redirect users to another authentication page provided by wechat. See if there's solution to this. Detailed HTTP header attached below:

HTTP/1.1 302 Found
Server: nginx
Date: <>
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/7.0.25
Location: https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa153455f3ef1d9f9&redirect_uri=https://v18.teachermate.cn/api/v1/wechat/re-auth?m=s_signin&response_type=code&scope=snsapi_base&state=#wechat_redirect
klx3300 commented 5 years ago

And YES i am using the NEWEST version of this repo.

recolic commented 5 years ago

我室友也gg了。working

qzwlecr commented 5 years ago

In #2 , I used the origin openid for re-sign checking, and it works now.

klx3300 commented 5 years ago

Tested the newest version this morning. Still not working.

qzwlecr commented 5 years ago

@klx3300 Test again, and it works now. What's your state this morning?

klx3300 commented 5 years ago

@qzwlecr To make things clear: What's the EXPECTED command line output of the script when there's NO sign-in opening?

qzwlecr commented 5 years ago

image like this

klx3300 commented 5 years ago

Then it's broken. Confirmed.

Lichen Zhang notifications@github.com 于 2019年6月1日周六 03:39写道:

[image: image] https://user-images.githubusercontent.com/23014427/58730465-d2adc680-841e-11e9-811e-b2ee5e40e36a.png like this

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/recolic/micro-teaching-assistant-fucker/issues/1?email_source=notifications&email_token=ABBUDSBTOG7Q7G3U4SD5QR3PYF5HDA5CNFSM4HOHZ4M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWWGA6Y#issuecomment-497836155, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBUDSDYWBKG3KIO4JK2GKLPYF5HDANCNFSM4HOHZ4MQ .