Accessing Web Client - 10.5

Stephen Kirk
Stephen Kirk Active Partner
10 Comments Second Anniversary Level 200: Building A Planning Solution in Board Level 100: Foundations of Building in Board
edited April 2020 in Platform

Hi,

 

I am not able to access the web client outside of the server as I was able to in the prior version. I get the following error:

image

 

I can however access the client through the local host on the server.

 

How am I able to access the new web client?

 

Thanks,

Stephen

Tagged:

Answers

  • Helmut Heimann
    Helmut Heimann Employee, Community Captain
    50 Answers 500 Comments 250 Likes Fourth Anniversary

    Hi Stephen Kirk,

     

    I don't want to sound provocative, but do the versions of web server and BOARD server match?

     

    Kind Regards,

    Helmut 

  • Stephen Kirk
    Stephen Kirk Active Partner
    10 Comments Second Anniversary Level 200: Building A Planning Solution in Board Level 100: Foundations of Building in Board
    edited March 2020

    Hi Helmut,

     

    They are the same versions.

     

    My BOARD server:

    image

     

    My Web server (accessed via localhost):

    image

     

    Thanks,

    Stephen

  • Helmut Heimann
    Helmut Heimann Employee, Community Captain
    50 Answers 500 Comments 250 Likes Fourth Anniversary

    Hi Stephen Kirk,

     

    does the WebLog file give any further explanations (The log file is located in the following path: «C:\Program Files (x86)\Board\Board WebApi Server\App_Data\logBoarWeb.log” on your server)?

    Did you try to use a different browser?

     

    Regards,

    Helmut

  • Stephen Kirk
    Stephen Kirk Active Partner
    10 Comments Second Anniversary Level 200: Building A Planning Solution in Board Level 100: Foundations of Building in Board

    Hi Helmut,

     

    I have tried a few different browsers and devices. I get the same error regardless.

     

    The log file I'm not entirely sure what it is telling me, but I have included here the events that occur when I try to access the web client:

     

    2019-03-22 14:20:44.093 +08:00 [Debug] LogEntry { Feature: NotDefined, Username: "UNKNOWN", ConnectionId: "00000000-0000-0000-0000-000000000000", Message: "Infos.Get [GET]", Exception: null, RefCode: null, Elapsed: null, AdditionalInfo: [] }
    2019-03-22 14:20:44.171 +08:00 [Debug] LogEntry { Feature: Authentication, Username: "UNKNOWN", ConnectionId: "00000000-0000-0000-0000-000000000000", Message: "Start discovery request", Exception: null, RefCode: null, Elapsed: null, AdditionalInfo: { From: "IdentityServer3" } }
    2019-03-22 14:20:45.250 +08:00 [Debug] LogEntry { Feature: Authentication, Username: "UNKNOWN", ConnectionId: "00000000-0000-0000-0000-000000000000", Message: "Start authorize request", Exception: null, RefCode: null, Elapsed: null, AdditionalInfo: { From: "IdentityServer3" } }
    2019-03-22 14:20:45.250 +08:00 [Debug] LogEntry { Feature: Authentication, Username: "UNKNOWN", ConnectionId: "00000000-0000-0000-0000-000000000000", Message: "Start authorize request protocol validation", Exception: null, RefCode: null, Elapsed: null, AdditionalInfo: { From: "IdentityServer3" } }
    2019-03-22 14:20:45.250 +08:00 [Error] LogEntry { Feature: Authentication, Username: null, ConnectionId: "00000000-0000-0000-0000-000000000000", Message: "\"Invalid redirect_uri: http://board.bi5.com.au/Callback.html\"
    \"{
    \\"ClientId\\": \\"boardwebapplication\\",
    \\"ClientName\\": \\"BOARD Web Application\\",
    \\"RedirectUri\\": \\"http://board.bi5.com.au/Callback.html\\",
    \\"AllowedRedirectUris\\": [
    \\"http://localhost/\\",
    \\"http://localhost/Callback.html\\",
    \\"http://localhost/SilentRefreshFrame.html\\",
    \\"http://100.72.50.85/\\",
    \\"http://100.72.50.85/Callback.html\\",
    \\"http://100.72.50.85/SilentRefreshFrame.html\\",
    \\"http://52.163.86.252/\\",
    \\"http://52.163.86.252/Callback.html\\",
    \\"http://52.163.86.252/SilentRefreshFrame.html\\",
    \\"http://board-bi5/\\",
    \\"http://board-bi5/Callback.html\\",
    \\"http://board-bi5/SilentRefreshFrame.html\\"
    ],
    \\"SubjectId\\": \\"unknown\\",
    \\"Flow\\": \\"AuthorizationCode\\",
    \\"RequestedScopes\\": \\"\\",
    \\"Raw\\": {
    \\"client_id\\": \\"boardwebapplication\\",
    \\"redirect_uri\\": \\"http://board.bi5.com.au/Callback.html\\",
    \\"response_type\\": \\"id_token token\\",
    \\"scope\\": \\"openid\\",
    \\"state\\": \\"727c57fdd95741b9ad2a37f4635d1454\\",
    \\"nonce\\": \\"baf1bc809a0d4a24ab50638422efe8fc\\"
    }
    }\"", Exception: null, RefCode: null, Elapsed: null, AdditionalInfo: { From: "IdentityServer3" } }
    2019-03-22 14:20:45.250 +08:00 [Debug] LogEntry { Feature: Authentication, Username: "UNKNOWN", ConnectionId: "00000000-0000-0000-0000-000000000000", Message: "End authorize request", Exception: null, RefCode: null, Elapsed: null, AdditionalInfo: { From: "IdentityServer3" } }
    2019-03-22 14:20:45.703 +08:00 [Debug] LogEntry { Feature: NotDefined, Username: "UNKNOWN", ConnectionId: "00000000-0000-0000-0000-000000000000", Message: "TranslateManager.TranslationsJson [GET]", Exception: null, RefCode: null, Elapsed: null, AdditionalInfo: [("q-0-lang": "en")] }

     

    If possible, could you take a look and let me know if this can help identify the issue.

     

    Thanks,

    Stephen

  • Vasile Minea
    Vasile Minea Active Partner
    Second Anniversary First Comment 5 Up Votes Photogenic

    Hi,

    We have the same problem.

    We install the new version on a new computer.

    Web version work on localhost.

    We tried to run on another computer, but we discover that we didn't allow in firewall.

    We made the change to the firewall on the server.

    Now, we got your error message.

    After we restart board web api service, the problem dissapear.

    Please check.

    Vasile

  • Stephen Kirk
    Stephen Kirk Active Partner
    10 Comments Second Anniversary Level 200: Building A Planning Solution in Board Level 100: Foundations of Building in Board

    Hi Vasile,

     

    What change did you make to the firewall? I have allowed the BoardWebAPIEngine.exe and ensured that port 8080 is allowed through.

     

    Helmut Heimann

    Are you aware if any of the ports that need to be allowed have changed on the upgrade?

     

    Thanks,

    Stephen

  • Vasile Minea
    Vasile Minea Active Partner
    Second Anniversary First Comment 5 Up Votes Photogenic

    Hello,

    I have Board Server and Board Web Api on the same computer.

    So, all I need to do, was to open incoming traffic on port 80 (i didn't use custom ports for Web Api Engine).

    In this moment I get you exception.

    After that, I restart Web Api Engine and remote computers can connect by web browser.

    I take a look, on your log, and I have some observations:

    1. Do not put real log with public host on internet. You could be hacked.

    2. I think you have Windows Authentication, so maybe the problems are from there. My tests where with Board authentication.

    Hope my informations are helpfull,

    Vasile Minea

  • Brendan Broughton
    Brendan Broughton Active Partner
    Third Anniversary 100 Comments 100 Up Votes 25 Likes

    Hi All,

    We aren't using win-authentication so that is not the issue (and the error is BEFORE log-in, it doesn't even bring up the login screen).

     

    From my investigation the issue seems to be with the redirect to callback.html as per the log above.  It seems 10.5 has an issue with the redirect to DNSname/callback.html, and only allows for (as per the log) to the IPaddress/callback.html or the Servername/callback.html.

     

    When we access via the web using the IP address it works fine.  When we use the DNSname it gives the error due to the callback.html redirect.

     

    Is this a change in 10.5, as we haven't changed anything on our server.

  • Samuele Marchetto
    Samuele Marchetto Active Partner
    Third Anniversary 100 Likes 10 Comments 5 Up Votes

    Hi, I had the same issue, not solved managing firewall settings. Changing the appSetting.config file has instead resolved. Thanks.