locked
Webservice to webservice authentication RRS feed

  • Question

  • User-1434382742 posted

    Hello community,

    I haved post this in a the IIS Security forum. Now I am post this here because this could be also a code problem.

    I have this problem:
    There is an app which registered via the windows authentication to service_1
    and gets a token.
    Then the app will use a function of the second service (service_2 [which has no windows authentication])
    to get access to corresponding objects.
    These objects the app only gets if he has a valid token or there is no exception.

    If he makes a request to service_2, the service checks his token
    (which is valid) and should establish a further connection to service_1 which returns a certain parameter.
    However he does not even come so far in advance I get this Exception:
    {" Message ":" Status code: Reason phrase Unauthorized: Unauthorized Request: Method: GET,
    RequestUri: 'http: // service_1 / api / Workplace / Workplace parameters', Version: 1.1, Content: <null>,
    Headers: \ r \ n {\ r \ n token: 8LHb6rgA60qSzgGJyA6I / g == \ r \ n Accept: application / json \ r \ n} "}.

    In debugging I note that he did not even come to service_1. Initially when the app is registered
    it works but as soon as the service_2 will connect to the service_1 there is something with the authentication
    get wrong and I get the exception.

    So how can I solved this Problem?

    Thursday, November 19, 2015 1:27 AM

Answers

  • User-1434382742 posted

    Thank you all for your thinking power :)

    I have found the solution. I switched on the IIS the webservice from windows authentication to basic authentication and thats it.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 19, 2015 5:25 AM