security

How to pass paypal API credentials SECURELY in with php (and why is this not considered secure)

梦想的初衷 提交于 2019-12-23 05:27:26
问题 So obviously the paypal API code is not very easy to read or understand, neither is the documentation which is provided. This guy agrees with me. If you’ve spent more than a few minutes in the PayPal documentation, you will know it’s easier to manually decrypt a 1024 bit RSA private key than to understand the PayPal Digital Goods with Express Checkout API. So I finally figured out how to get PHP to communicate with the paypal API through this sample code: https://ppmts.custhelp.com/app

How to pass paypal API credentials SECURELY in with php (and why is this not considered secure)

本秂侑毒 提交于 2019-12-23 05:27:14
问题 So obviously the paypal API code is not very easy to read or understand, neither is the documentation which is provided. This guy agrees with me. If you’ve spent more than a few minutes in the PayPal documentation, you will know it’s easier to manually decrypt a 1024 bit RSA private key than to understand the PayPal Digital Goods with Express Checkout API. So I finally figured out how to get PHP to communicate with the paypal API through this sample code: https://ppmts.custhelp.com/app

Signed applet doesn't show publisher information

瘦欲@ 提交于 2019-12-23 05:22:51
问题 I signed my applet using .pfx file. But when I run my web page it shows "UNKNOWN publisher warning". I also have another certificate .cer (How to check that its a code signing certificate)[I got it from another person and he is also not sure]. So to sign applet, do I need special certificate say "Code Signing" certificate? Or I'm missing something? 回答1: A digital certificate that is generated by me or you will read UNKNOWN in that dialog. The reason is that if you can make a certificate

Signed applet doesn't show publisher information

旧城冷巷雨未停 提交于 2019-12-23 05:22:07
问题 I signed my applet using .pfx file. But when I run my web page it shows "UNKNOWN publisher warning". I also have another certificate .cer (How to check that its a code signing certificate)[I got it from another person and he is also not sure]. So to sign applet, do I need special certificate say "Code Signing" certificate? Or I'm missing something? 回答1: A digital certificate that is generated by me or you will read UNKNOWN in that dialog. The reason is that if you can make a certificate

Javascript same origin security issue

独自空忆成欢 提交于 2019-12-23 05:16:10
问题 I learned the Javascript concept of same source of origin, which means Javascript code could only access the host where it is downloaded from. My confusion is, I have developed Javascript code, store the code locally into a .js file and call Javascript code from another local html file. When I use IE to open the local html file, I find the Javascript could access any host, like Google and Bing. Here is my code. My confusion is, seems the Javascript same original security restriction does not

Hadoop cannot access /logs/. in secure mode

北慕城南 提交于 2019-12-23 05:15:13
问题 I am using hadoop-2.6.0 and enabled security with kerberos. All working fine. But i am unable to access the logs files from browser. It shows Problem accessing /logs/. Reason: User babu is unauthorized to access this page. I tried with all users but no luck. Can anyone help me how to authorize any user to access log files? 回答1: You shouldn't access the logs directly in the FS, access is restricted to the NM user and the yarn group. Use the log-aggregation service to retrieve/view logs. See

How do I know whether HttpServletRequest is subject to <security-constraint> or not?

一个人想着一个人 提交于 2019-12-23 05:11:10
问题 I have an servlet with security constraint in it's web.xml like below: <security-constraint> <web-resource-collection> <web-resource-name>Admin</web-resource-name> <url-pattern>/admin/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint> Above forces a switch to https protocol and works fine. But on the secured pages there some relative links to unsecured pages. When users clicks

Security for Flex app when ssl is not available

青春壹個敷衍的年華 提交于 2019-12-23 05:08:14
问题 So I know the best practice would be to run my Flex app over ssl along with implementing other forms of security however that isn't an option at this point (for monetary reasons and the app simply doesn't need that much security otherwise my sponsors would pay for it). However, I would like to implement some form of security and I'm wondering whether it's even worth it when I don't have ssl to protect the transactions. So my setup is that I have a ASP.Net server side with a Flex UI. Right now

Spring security db UserDetailsService doesn't take in account the roles of users

橙三吉。 提交于 2019-12-23 05:05:53
问题 I have a toy web app, in which I want to login the users taken from database. It works but, I can login with a USER role where I should only login with a user having the ADMIN role. Here is my code: Servlet 3.0 bootstraper public class Bootstraper extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected Class<?>[] getRootConfigClasses() { return new Class<?>[]{JPAConfig.class, WebSecurityConfig.class}; } @Override protected Class<?>[] getServletConfigClasses() {

Grails Acegi plugin annotations

扶醉桌前 提交于 2019-12-23 05:04:13
问题 I'm using the annotations provided by the Spring Security (AKA Acegi) plugin. I have controller actions annotated with @Secured(['ROLE_ADMIN', 'ROLE_USER']) To indicate that they should be available to administrators and regular users. But now I need to indicate that an action is available to administrators and unregistered users. Is it possible to use annotations to indicate a user without any role, i.e. unregistered? Thanks, Don 回答1: Here's a solution that requires that you not be logged in