Git Product home page Git Product logo

Comments (2)

88250 avatar 88250 commented on July 18, 2024

不行,请看 FAQ。

from solo.

lyne408 avatar lyne408 commented on July 18, 2024

不行,请看 FAQ。

Solo is WAN-dependent

When downloading MySQL Community Server, login is optional.
When downloading MongoDB Community Server, login once.
When downloading XShell Home User Edition, login once.
When running MySQL Server, MongoDB Server or XShell, it's WAN-independent.

When running Solo Blog System, it's WAN-dependent.

Solo 401 Page Codes

https://github.com/88250/solo/blob/7b93aa41fba2c5176fb2128c366af90db466e8fc/src/main/java/org/b3log/solo/processor/OAuthProcessor.java

  final JSONObject userInfo = Solos.getUserInfo(accessToken);
  if (null == userInfo) {
      LOGGER.log(Level.WARN, "Can't get user info with token [" + accessToken + "]");
      context.sendError(401);
      return;
  }

https://github.com/88250/solo/blob/7b93aa41fba2c5176fb2128c366af90db466e8fc/src/main/java/org/b3log/solo/processor/console/AdminConsole.java

  final Response response = context.getResponse();
  if (!Solos.isAdminLoggedIn(context)) {
      context.sendError(401);
      return;
  }

https://github.com/88250/solo/blob/e8450245b4e2ae725c354685dae17594088d53f2/src/main/java/org/b3log/solo/processor/console/ConsoleAuthMidware.java

  final JSONObject currentUser = Solos.getCurrentUser(context);
  if (null == currentUser) {
      context.sendError(401);
      context.abort();
      return;
  }

https://github.com/88250/solo/blob/e8450245b4e2ae725c354685dae17594088d53f2/src/main/java/org/b3log/solo/processor/console/ConsoleAdminAuthMidware.java

  if (!Solos.isAdminLoggedIn(context)) {
      context.sendError(401);
      context.abort();
      return;
  }

Solutions of Solo WAN-independent

  • Inject admin user in Java back-end source codes

VEditor 还是很不错的. Solo 依赖 WAN, 有时不可用, 即不稳定. 不稳定, 则不用. 如果无用的话, 一般 User 也不会捐赠.

from solo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.