CINXE.COM
<!DOCTYPE html> <html> <head> <script> var getUniqueStr = function() { return new Date().getTime().toString(16) + Math.floor(100000000 * Math.random()).toString(16) } var getRedirectUri = function() { var path = localStorage.getItem('casio_id_redirect_path'); if (!path) { path = 'social-login'; } return `https://classpad.net/note/${path}`; } var domain = 'https://auth.casio-intl.com'; var clientId = 'casio-dic-classpad-cli'; var codeChallenge = 'vOp0hg5IstCU0xfHnYnGpFJ_tMP5MkbqzkW8ik8BVxI'; var authDir = "/api/connect/v1/authz"; var url = domain + authDir; var reqParam = "?response_type=code"; reqParam += "&client_id=" + clientId; reqParam += "&redirect_uri=" + getRedirectUri(); reqParam += "&scope=" + "openid+casio+ul_session"; reqParam += "&nonce=" + getUniqueStr(); reqParam += "&code_challenge_method=S256"; reqParam += "&code_challenge=" + codeChallenge; reqParam += "&redirectFlg=create"; url += reqParam; window.location.href = url; </script> </head> <body> </body> </html>