Base solution for your next web application
Open Closed

SWAGGER: "CURRENT USER DID NOT LOGIN TO THE APPLICATION!" #4669


User avatar
0
annoure created

Hello everybody,

I have this error message locally and on the remote server

I looked on the forum:

  • The post: [https://forum.aspnetboilerplate.com/viewtopic.php?f=5&t=10065&p=23165&hilit=Current+user+did+not+login+to+the+application#p23165])
  • This page: [https://github.com/aspnetboilerplate/module-zero-core-template/pull/87])

But I could not find the solution.

This is a screenShot of the error: [http://prntscr.com/ideiwr]) Can you help me please

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

12 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    The obvious solution is to login.

    The duplicate topic ("post") and PR ("page") point to JavaScript helpers that make login easy. One comment on that PR details the simple steps to use the helpers in different example flows.

    You can implement it, or wait for https://github.com/aspnetzero/aspnet-zero-core/issues/723.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    TimMackey created

    I don't have access to <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues">https://github.com/aspnetzero/aspnet-zero-core/issues</a>

    How do I get access to see what the issue is?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    TimMackey created

    "The obvious solution is to login."

    I read the references to other posts that says to use "the console". Where is "the console"?

    How does one login via Swagger, or is a manner that Swagger will recognize that you logged in?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi @TimMackey, you need to login with your GitHub account to access the private repo. You can invite yourself here: <a class="postlink" href="https://aspnetzero.com/LicenseManagement">https://aspnetzero.com/LicenseManagement</a>

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    TimMackey created

    Where is "the console"?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    aaron created
    Support Team

    Using the console:

    To open the dedicated Console panel, either:

    • Press Ctrl+Shift+J (Windows / Linux) or Cmd+Opt+J (Mac).
    • If DevTools is already open, press the Console button.

    Note that #723 will be in v5.3.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    TimMackey created

    Answer: <ins>In the debugger window of your browser</ins>, select 'Console'.

    Entering 'abp.swagger.login()' causes an error: "Uncaught ReferenceError: abp is not defined at <anonymous>:1:1"

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    aaron created
    Support Team

    <cite>aaron: </cite> Note that #723 will be in v5.3.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    TimMackey created

    Does this mean that until v5.3 is released, Swagger cannot make calls to the server and expect an OK 200 response like a logged-in user would?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    aaron created
    Support Team
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    TimMackey created

    Will the commit be in the v5.3 release? If, yes, then I will wait for v5.3.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    aaron created
    Support Team

    <cite>aaron: </cite> Note that #723 will be in v5.3.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)