Don't add WWW-Authenticate header to response on AuthenticationException
This commit is contained in:
parent
1ba0ae3960
commit
d11cbab15c
|
@ -649,10 +649,6 @@ public class RestfulServer extends HttpServlet implements IRestfulServer<Servlet
|
|||
}
|
||||
}
|
||||
|
||||
if (requestIsBrowser) {
|
||||
// if request is coming from a browser, prompt the user to enter login credentials
|
||||
theResponse.setHeader("WWW-Authenticate", "BASIC realm=\"FHIR\"");
|
||||
}
|
||||
writeExceptionToResponse(theResponse, e);
|
||||
|
||||
} catch (Throwable e) {
|
||||
|
|
|
@ -66,6 +66,17 @@
|
|||
resource. This is being used as a part of the May 2016 Connectathon for
|
||||
a testing scenario.
|
||||
</action>
|
||||
<action type="add">
|
||||
The server no longer adds a
|
||||
<![CDATA[<code>WWW-Authenticate</code>]]>
|
||||
header to the response if any resource provider code throws an
|
||||
<![CDATA[<code>AuthenticationException</code>]]>. This header is
|
||||
used for interactive authentication, which isn't generally
|
||||
appropriate for FHIR. We added code to add this header a long time
|
||||
ago for testing purposes and it never got removed. Please let us
|
||||
know if you need the ability to add this header automatically. Thanks
|
||||
to Lars Kristian Roland for pointing this out.
|
||||
</action>
|
||||
</release>
|
||||
<release version="1.4" date="2016-02-04">
|
||||
<action type="add">
|
||||
|
|
Loading…
Reference in New Issue