|
| 1 | +<!DOCTYPE html> |
| 2 | +<html class="h-full"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <!-- meta tags generated with https://metatags.io/ --> |
| 7 | + <title>401: Unauthorized</title> |
| 8 | + <meta name="title" content="401: Unauthorized" /> |
| 9 | + <meta |
| 10 | + name="description" |
| 11 | + content="You must be authenticated to access this content" |
| 12 | + /> |
| 13 | + <!-- svg favicon encoded with https://yoksel.github.io/url-encoder/ --> |
| 14 | + <link |
| 15 | + rel="icon" |
| 16 | + href="data:image/svg+xml, %3Csvg role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='%2300C65E' %3E%3Ctitle%3ESkynet%3C/title%3E%3Cpath d='m-.0004 6.4602 21.3893 11.297c.561.2935.6633 1.0532.1999 1.4846h-.011a10.0399 10.0399 0 0 1-2.2335 1.5307c-6.912 3.4734-14.9917-1.838-14.5438-9.5605l2.8601 1.9752c.856 4.508 5.6187 7.1094 9.8742 5.3932zm8.6477 3.1509 14.3661 5.6785a.8704.8704 0 0 1 .5197 1.0466v.0182c-.1537.5377-.7668.7938-1.2575.5252zm5.2896-7.4375c2.7093-.2325 6.0946.7869 8.1116 3.3871 1.699 2.1951 2.0497 4.8772 1.9298 7.6465v-.007c-.0478.5874-.6494.9616-1.1975.745l-9.7652-3.8596 9.0656 2.4313a7.296 7.296 0 0 0-1.0677-4.5631c-2.9683-4.7678-9.9847-4.5344-12.6297.4201a7.5048 7.5048 0 0 0-.398.8831L5.5546 7.9614c.069-.1017.1417-.198.2144-.2962.1163-.2416.2417-.487.3798-.7268 1.6118-2.7911 4.3102-4.4338 7.1558-4.6973.2108-.0182.4215-.049.6323-.0672z' /%3E%3C/svg%3E" |
| 17 | + type="image/svg+xml" |
| 18 | + /> |
| 19 | + <!-- https://fonts.google.com/specimen/Sora --> |
| 20 | + <link rel="preconnect" href="https://fonts.googleapis.com" /> |
| 21 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| 22 | + <link |
| 23 | + href="https://fonts.googleapis.com/css2?family=Sora:wght@400;800&display=swap" |
| 24 | + rel="stylesheet" |
| 25 | + /> |
| 26 | + <!-- https://tailwindcss.com/docs/installation/play-cdn --> |
| 27 | + <script src="https://cdn.tailwindcss.com"></script> |
| 28 | + <script> |
| 29 | + tailwind.config = { |
| 30 | + theme: { extend: { fontFamily: { sans: ["Sora", "sans-serif"] } } }, |
| 31 | + }; |
| 32 | + </script> |
| 33 | + </head> |
| 34 | + <body class="h-full"> |
| 35 | + <div |
| 36 | + class="bg-white min-h-full px-4 py-16 sm:px-6 sm:py-24 md:grid md:place-items-center lg:px-8" |
| 37 | + > |
| 38 | + <div class="max-w-max mx-auto"> |
| 39 | + <main class="sm:flex"> |
| 40 | + <svg |
| 41 | + role="img" |
| 42 | + viewBox="0 0 24 24" |
| 43 | + xmlns="http://www.w3.org/2000/svg" |
| 44 | + height="88" |
| 45 | + fill="#00C65E" |
| 46 | + > |
| 47 | + <title>Skynet</title> |
| 48 | + <path |
| 49 | + d="m-.0004 6.4602 21.3893 11.297c.561.2935.6633 1.0532.1999 1.4846h-.011a10.0399 10.0399 0 0 1-2.2335 1.5307c-6.912 3.4734-14.9917-1.838-14.5438-9.5605l2.8601 1.9752c.856 4.508 5.6187 7.1094 9.8742 5.3932zm8.6477 3.1509 14.3661 5.6785a.8704.8704 0 0 1 .5197 1.0466v.0182c-.1537.5377-.7668.7938-1.2575.5252zm5.2896-7.4375c2.7093-.2325 6.0946.7869 8.1116 3.3871 1.699 2.1951 2.0497 4.8772 1.9298 7.6465v-.007c-.0478.5874-.6494.9616-1.1975.745l-9.7652-3.8596 9.0656 2.4313a7.296 7.296 0 0 0-1.0677-4.5631c-2.9683-4.7678-9.9847-4.5344-12.6297.4201a7.5048 7.5048 0 0 0-.398.8831L5.5546 7.9614c.069-.1017.1417-.198.2144-.2962.1163-.2416.2417-.487.3798-.7268 1.6118-2.7911 4.3102-4.4338 7.1558-4.6973.2108-.0182.4215-.049.6323-.0672z" |
| 50 | + /> |
| 51 | + </svg> |
| 52 | + <div class="sm:ml-6"> |
| 53 | + <div class="sm:border-l sm:border-gray-200 sm:pl-6"> |
| 54 | + <h1 |
| 55 | + class="text-xl font-extrabold text-gray-900 tracking-tight sm:text-2xl" |
| 56 | + > |
| 57 | + You must be authenticated to access this content |
| 58 | + </h1> |
| 59 | + <p class="mt-1 text-base text-gray-500"> |
| 60 | + You're being redirected to the Log In page of this Skynet Portal |
| 61 | + </p> |
| 62 | + <p class="mt-2 text-sm text-gray-300">HTTP 401: Unauthorized</p> |
| 63 | + </div> |
| 64 | + <div |
| 65 | + class="mt-10 flex space-x-3 sm:border-l sm:border-transparent sm:pl-6" |
| 66 | + > |
| 67 | + <p class="mt-1 text-sm text-gray-500"> |
| 68 | + If you're not redirected automatically, |
| 69 | + <a |
| 70 | + href="https://account.${PORTAL_DOMAIN}/auth/login" |
| 71 | + class="text-[#00C65E]" |
| 72 | + >click here</a |
| 73 | + >. |
| 74 | + </p> |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </main> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + <script> |
| 81 | + // prevent auto redirect if not on portal domain to allow local development |
| 82 | + if (window.location.hostname.endsWith("${PORTAL_DOMAIN}")) { |
| 83 | + setTimeout(function redirect() { |
| 84 | + const encodedReturnTo = encodeURIComponent(window.location.href); |
| 85 | + window.location.href = `https://account.${PORTAL_DOMAIN}/auth/login?return_to=${encodedReturnTo}`; |
| 86 | + }, 5000); // redirect after 5 seconds |
| 87 | + } |
| 88 | + </script> |
| 89 | + </body> |
| 90 | +</html> |
0 commit comments