security

Using HMAC-SHA1 for API authentication - how to store the client password securely?

我怕爱的太早我们不能终老 提交于 2019-12-29 02:52:26
问题 In a RESTful API that uses S3-style authentication, the API client signs the request with his secret key using HMAC-SHA1, so the secret key is never transmitted over the wire. The server then authenticates the client by using that client's secret key to repeat the signature process itself and compare the result to the signature transmitted by the client. This is all nice and good but it means the the server requires access to the plaintext of the client's shared secret. That flies in the face

How To Become a SAML Service Provider

*爱你&永不变心* 提交于 2019-12-29 02:18:06
问题 My company currently develops a Java web application. A couple of our clients have internal SAML servers (identity providers?) and have requested that we integrate with them. So recently I've been reading up on it and playing around with OpenAM. After about 3 days of this, I have a general understanding of it, but there are still some gaps in my knowledge. My hope is that someone can clear this up for me. So here's how I imagine the workflow of a user logging in. Let's define our customers

Spring Security, secured and none secured access

早过忘川 提交于 2019-12-29 01:49:07
问题 I'm doing a little application that requires to login first. But for some 3rd party tool, I want to provide an API that doesn't require login. The login itself works fine, the API itself works, but I can't figure out how to tell Spring Security, that the API can be accessed without the need of authentication. I checked several topics here and on other websites and tried different versions, but none worked. Everytime I try to access the API, I get forwarded to the login form and have to login

how to include AntiForgeryToken in an ajax action link in mvc?

不想你离开。 提交于 2019-12-29 01:25:18
问题 I have the following code: @Ajax.ActionLink("Delete", "Delete", new { id = item.ID, RequestVerificationToken=*What comes here?*}, new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "formsIndex" }) I want to add the verification token to the link without using javascript in client side, it seems like a redundant dependancy since i already own that value in server. Is there a proper way to do that? 回答1: From the MSDN documentation (my emphasis) HtmlHelper.AntiForgeryToken Method Generates

how to include AntiForgeryToken in an ajax action link in mvc?

血红的双手。 提交于 2019-12-29 01:25:08
问题 I have the following code: @Ajax.ActionLink("Delete", "Delete", new { id = item.ID, RequestVerificationToken=*What comes here?*}, new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "formsIndex" }) I want to add the verification token to the link without using javascript in client side, it seems like a redundant dependancy since i already own that value in server. Is there a proper way to do that? 回答1: From the MSDN documentation (my emphasis) HtmlHelper.AntiForgeryToken Method Generates

Can I setup an IP filter for a WCF Service?

混江龙づ霸主 提交于 2019-12-29 01:15:43
问题 I'm modifying my WCF API to include a new service that should be exposed to internal IP addresses only. All of the services in my API are available in SOAP, POX and JSON. What I'm looking for is a behavior or something that allows me to implement a simple IP address filter, to process requests from internal IP's and deny everything else. I'd like it to work in configuration, because all the other services in the API should remain available to the Internet. I did some googling but can't find

Can I setup an IP filter for a WCF Service?

最后都变了- 提交于 2019-12-29 01:15:06
问题 I'm modifying my WCF API to include a new service that should be exposed to internal IP addresses only. All of the services in my API are available in SOAP, POX and JSON. What I'm looking for is a behavior or something that allows me to implement a simple IP address filter, to process requests from internal IP's and deny everything else. I'd like it to work in configuration, because all the other services in the API should remain available to the Internet. I did some googling but can't find

Does using SecureZeroMemory() really help to make the application more secure?

烈酒焚心 提交于 2019-12-28 22:32:30
问题 There's a SecureZeroMemory() function in WinAPI that is designed for erasing the memory used for storing passwords/encryption keys/similar stuff when the buffer is no longer needed. It differs from ZeroMemory() in that its call will not be optimized out by the compiler. Is it really so necessary to erase the memory used for storing sensitive data? Does it really make the application more secure? I understand that data could be written into swapfile or into hibernation file and that other

Do we need a security signature for the web service response?

女生的网名这么多〃 提交于 2019-12-28 19:19:32
问题 I have created a web service API and it's architecture is such that the server requires a client to sign the request along with a secret key assigned to it (signature is always different between multiple requests). Server matches the client's signature with its own computed signature. If they are a match then the server returns the response. I am wondering if a client should check the response coming back from the server to see if it's from the same application to which the request was made.

Protect audio file from being downloaded while still being playable through JQuery JPlayer

自闭症网瘾萝莉.ら 提交于 2019-12-28 18:28:11
问题 I have audio files saved in a folder on my server. They are called by JQuery JPlayer to be played. However if a person looks at the source of the page, they can find the location of the file and simply download it. I want to protect the files from being downloadable, but still allow JPlayer to play them. Is this possible? I have tried denying the folder with .htaccess as well as password protecting the folder, but this prevents JPlayer from being able to play the files. 回答1: It's impossible