oauth_fail.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>OauthFailed - RustDesk API</title>
  7. <style>
  8. body {
  9. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  10. background-color: #f5f5f5;
  11. margin: 0;
  12. display: flex;
  13. justify-content: center;
  14. align-items: center;
  15. min-height: 100vh;
  16. }
  17. .success-container {
  18. text-align: center;
  19. background: white;
  20. padding: 2rem;
  21. border-radius: 10px;
  22. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  23. max-width: 400px;
  24. width: 90%;
  25. }
  26. .checkmark {
  27. color: #ba363a;
  28. font-size: 4rem;
  29. margin-bottom: 1rem;
  30. }
  31. h1 {
  32. color: #333;
  33. margin-bottom: 1rem;
  34. }
  35. p {
  36. color: #666;
  37. line-height: 1.6;
  38. margin-bottom: 1.5rem;
  39. }
  40. .return-link {
  41. display: inline-block;
  42. padding: 10px 20px;
  43. background-color: #ba363a;
  44. color: white;
  45. text-decoration: none;
  46. border-radius: 5px;
  47. transition: background-color 0.3s;
  48. }
  49. .return-link:hover {
  50. background-color: #ba363a;
  51. }
  52. </style>
  53. <link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/6.0.0/css/all.min.css">
  54. <script>
  55. var lang = navigator.language || navigator.userLanguage || 'zh-CN';
  56. var title = 'OauthFailed'
  57. var msg = '{{.message}}'
  58. var btn = 'Close'
  59. document.writeln('<script src="/api/oidc/msg?lang=' + lang + '&msg=' + msg + '&title=OauthFailed"><\/script>');
  60. </script>
  61. </head>
  62. <body>
  63. <div class="success-container">
  64. <i class="fas fa-triangle-exclamation checkmark"></i>
  65. <h1 id="h1"></h1>
  66. <p id="msg"></p>
  67. <a href="javascript:window.close()" class="return-link" id="btn">Close</a>
  68. </div>
  69. <script>
  70. document.title = title + ' - RustDesk API';
  71. document.getElementById('h1').innerText = title;
  72. document.getElementById('msg').innerText = msg;
  73. </script>
  74. </body>
  75. </html>