Created
April 6, 2019 08:04
-
-
Save isdaviddong/e1c394dbc7cebe5d424446aff2e5ac91 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //建立OAuth 身分驗證頁面並導入 | |
| function AuthWithEmail() { | |
| var URL = 'https://access.line.me/oauth2/v2.1/authorize?'; | |
| URL += 'response_type=code'; | |
| URL += '&client_id=這邊要換成你的client_id'; //TODO:這邊要換成你的client_id | |
| URL += '&redirect_uri=http://localhost:17615/callback.aspx'; //TODO:要將此redirect url 填回你的 LineLogin後台設定 | |
| URL += '&scope=openid%20profile%20email'; | |
| URL += '&state=abcde'; | |
| window.location.href = URL; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment