callback.html 451 B

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>登录回调</title>
  6. </head>
  7. <body>
  8. <p>登录中....</p>
  9. <script src="./lib/oidc-client.js"></script>
  10. <script>
  11. new Oidc.UserManager()
  12. .signinRedirectCallback()
  13. .then(function (user) {
  14. window.location = user.state;
  15. })
  16. .catch(function (e) {
  17. console.error(e);
  18. });
  19. </script>
  20. </body>
  21. </html>