app-secret

How to use user secrets in a dotnet core test project

点点圈 提交于 2019-12-05 02:32:42
I want to store a database connection string for my integration tests as a user secret. My project.json looks like this: { ... "dependencies": { ... "Microsoft.Extensions.Configuration.UserSecrets": "1.1.0" }, "tools": { "Microsoft.Extensions.SecretManager.Tools": "1.1.0-preview4-final" }, "userSecretsId": "dc5b4f9c-8b0e-4b99-9813-c86ce80c39e6" } I've added the following to the constructor of my test class: IConfigurationBuilder configurationBuilder = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .AddUserSecrets(); However when I run the tests the following exception is thrown

How bad is publishing the app secret really?

南笙酒味 提交于 2019-12-04 09:54:31
After significant voodoo, I have finally got the scores API working. Turns out you have to set Enhanced Auth Dialog to disabled or Facebook ignores your publish_actions permission. Just a heads up in case anyone else is struggling. However, I'm working entirely in the Javascript API. No server-side scripting is available. The only way to publish a score is with an app access token. The only way to get one of them is to use the app secret, and that would have to be in the javascript code for the world to see. How bad is that exactly? TBH I don't care if someone spoofs the scores to my little

Protecting app secret for extendAccessToken usage

…衆ロ難τιáo~ 提交于 2019-12-01 00:41:41
I'm developing for Android and currently use facebook-android-sdk for authentication. From what I can see there is no use of the app secret in that code which is great. Now that Facebook are going to remove the offline_access permission I need to extend the access token. Unfortunately the sdk's extendAccessToken method isn't stand alone and requires the official Facebook application to be installed which is unacceptable for me. So I decided to implement extendAccessToken directly (similar to the iphone sdk implementation). The problem is the HTTP request for extending an access token requires

Protecting app secret for extendAccessToken usage

老子叫甜甜 提交于 2019-11-30 19:10:06
问题 I'm developing for Android and currently use facebook-android-sdk for authentication. From what I can see there is no use of the app secret in that code which is great. Now that Facebook are going to remove the offline_access permission I need to extend the access token. Unfortunately the sdk's extendAccessToken method isn't stand alone and requires the official Facebook application to be installed which is unacceptable for me. So I decided to implement extendAccessToken directly (similar to

How to Make a Secret iOS App Text Animation

感情迁移 提交于 2019-11-29 03:01:06
问题 I'm trying to duplicate the Secret App's Text Label transition. Does anyone the best way to approach it? It looks like they have each letter start out as clear text color and then animate it to gray and then white text color. Here are some screenshots: 回答1: Here is another solution https://github.com/zipme/RQShineLabel I use CADisplayLink together with NSAttributedString that way we only need one UILabel, have a look :) 回答2: Thanks everyone for the help. I was able to get this working with

why do I get “Invalid appsecret_proof provided in the API argument”

为君一笑 提交于 2019-11-29 02:48:46
Since the latest change on Facebook, regarding the appsecret_proof: https://developers.facebook.com/docs/reference/api/securing-graph-api/ , we are still unable to download performance reports even after enabling/disabling features from Advanced Settings in our app, or apply the code as described in their document. We are constantly getting this error: {"error":{"message":"Invalid appsecret_proof provided in the API argument","type":"GraphMethodException","code":100}} and I've open a confidential bug but no one returns to me with an answer. I really don't know what more could we try? The error

why do I get “Invalid appsecret_proof provided in the API argument”

半腔热情 提交于 2019-11-27 17:05:36
问题 Since the latest change on Facebook, regarding the appsecret_proof: https://developers.facebook.com/docs/reference/api/securing-graph-api/, we are still unable to download performance reports even after enabling/disabling features from Advanced Settings in our app, or apply the code as described in their document. We are constantly getting this error: {"error":{"message":"Invalid appsecret_proof provided in the API argument","type":"GraphMethodException","code":100}} and I've open a