security

secure api data from calls out of the app

这一生的挚爱 提交于 2020-05-14 08:45:08
问题 Consider we have an api endpoint (ex: REST) and a react web app to connect it This is what I do for authentication and authorization When user sends a login request I create a token (ex: JWT) for that user and then user can send query or mutation requests with that token For doing this I save token in localStorage or cookies and user self can see it For a simple app it's ok butو what if I want to even the user not be able to use this token, and token work just in my react app ( my website ) ?

secure api data from calls out of the app

a 夏天 提交于 2020-05-14 08:43:09
问题 Consider we have an api endpoint (ex: REST) and a react web app to connect it This is what I do for authentication and authorization When user sends a login request I create a token (ex: JWT) for that user and then user can send query or mutation requests with that token For doing this I save token in localStorage or cookies and user self can see it For a simple app it's ok butو what if I want to even the user not be able to use this token, and token work just in my react app ( my website ) ?

How to prevent a hacker from reading/writing on firebase database

不羁的心 提交于 2020-05-13 07:06:45
问题 I have some questions about securing firebase database for mobile applications. For example, after decompiling Android application a hacker can get firebase api key and then get access to firebase database, is this correct? Let's assume, I added some security rules like for example an app can read/write on firebase only if auth!=null, this means that the authentication is protecting my firebase database, but this put me to ask the same question, if I configure facebook/google/ or even

Why does CORS block custom headers by default?

烈酒焚心 提交于 2020-05-13 05:06:56
问题 I assume that the default blocking of custom headers in cors requests is to prevent some kind of attack. Is that assumption correct? If so, what's the attack? from https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS In CORS, a preflight request with the OPTIONS method is sent, so that the server can respond whether it is acceptable to send the request with these parameters. The Access-Control-Request-Method header notifies the server as part of a preflight request that when the

Why does CORS block custom headers by default?

无人久伴 提交于 2020-05-13 05:04:09
问题 I assume that the default blocking of custom headers in cors requests is to prevent some kind of attack. Is that assumption correct? If so, what's the attack? from https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS In CORS, a preflight request with the OPTIONS method is sent, so that the server can respond whether it is acceptable to send the request with these parameters. The Access-Control-Request-Method header notifies the server as part of a preflight request that when the

IIS Manager Bad Data. 0x80090005

时光总嘲笑我的痴心妄想 提交于 2020-05-12 11:16:06
问题 When I tried to set Physical Path Credentials in the Advanced Settings, I've got an error message as follows: Internet Information Services (IIS) Manager Bad Data. (Exception from HRESULT: 0x80090005) And it prevents me to set specific user to access network shared folder. Strangely, I have another server with same configuration, it works fine but this one raised the error. Any idea? 回答1: if you copied over the applicationhost.config, you need to export and import also accounts encrypted

Support for File Security in .Net core

非 Y 不嫁゛ 提交于 2020-05-10 14:25:46
问题 We were porting a .Net 4.0 class Library to .Net Core 1.1 and struck with an issue of very limit support for file Security and permissions in .Net core CLR. We were trying to set the access control permissions to a file as below, and it seems that FileInfo doesn't have any SetAccessControl or GetAccessControl anymore. // Get a FileSecurity object that represents the // current security settings. FileSecurity fSecurity = File.GetAccessControl(fileName); // Add the FileSystemAccessRule to the

What is a keytab exactly?

南楼画角 提交于 2020-05-10 07:28:07
问题 I am trying to understand how Kerberos works and so came across this file called Keytab which, I believe, is used for authentication to the KDC server. Just like every user and service(say Hadoop) in a kerberos realm has a service principal, does every user and service have a keytab file? Also, does authentication using keytab work on symmetric key cryptography or public-private key? 回答1: To answer your two questions, every user and service does not need a keytab file and keytabs use

Mac OS X Keychain access in Java for Generic Passwords

蹲街弑〆低调 提交于 2020-05-10 06:21:51
问题 What is the standard way to retrieve generic passwords in the Keychain of OS X using only Java? Apple Developer Pages provide some good background but the implementation and examples are in C or native code unfortunately. The Java KeyStore OS X implementation appears to be good only for public/private key pairs and certs but not generic username/password combos. I see a project started Here: but it is relatively old and not actively maintained. Is there a more state of the art solution to the

Mac OS X Keychain access in Java for Generic Passwords

假如想象 提交于 2020-05-10 06:20:27
问题 What is the standard way to retrieve generic passwords in the Keychain of OS X using only Java? Apple Developer Pages provide some good background but the implementation and examples are in C or native code unfortunately. The Java KeyStore OS X implementation appears to be good only for public/private key pairs and certs but not generic username/password combos. I see a project started Here: but it is relatively old and not actively maintained. Is there a more state of the art solution to the