CINXE.COM
<!DOCTYPE html> <html> <head> <script> const searchParams = new URLSearchParams(window.location.search); 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'; } if (searchParams.get('c') === 'us') { return `https://classpad.net/note/${path}${encodeURIComponent('?c=us')}`; } else { return `https://classpad.net/note/${path}`; } } var domain = 'https://auth.casio-intl.com'; var clientId; var codeChallenge; if (searchParams.get('c') === 'us') { clientId = 'casio-dic-classpadus-cli'; codeChallenge = '-rdOhgYN6szw03UREqxqhiUjlDFDSAWy-STZYf2QSqw'; } else { clientId = 'casio-dic-classpad-cli'; 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; url += reqParam; window.location.href = url; </script> </head> <body> </body> </html>