FAQ Database Discussion Community


How to not reveal a third party secret api key in MediaWiki

mediawiki,api-key,mediawiki-extensions
I've got an API key from themoviedb.org and I want to use it with the MediaWiki extension External Data. But if I put it as plain wikitext it will be in plain sight. Is there a simple way to add it as a custom variable in LocalSettings.php and then call...

Where to store API keys and other 'secrets' in a yesod app

haskell,yesod,api-key
I'm trying out a yesod applications which I will eventually put up on github or similar. I will use oauth2 with google which means I have to provide an email and secret token. Which I obviously do not want up on github. What is a good place to store these...

Trello keys, which can be revealed?

web-applications,api-key,trello,auth-token
Which keys can be revealed? I'm developing open source application using trello api in python. I have the application key which I generated from appKey/generate which I always require for initiating client. If I hard code this application key in my source code then everybody will be able to use...

How can I securely store and retrieve API Keys for an android application (written in native Java) using Firebase Hosting?

firebase,api-key,firebase-hosting
I'm just starting to learn to code. Providing example code would be fantastic. I developed a simple android application (native Java) using Firebase. I have several API keys hard-coded into the resources of my application. I read that it is better to store these keys on a server. I currently...

ServiceStack authentication with both [Authenticate] and [ValidateApiKey] attributes

authentication,servicestack,api-key
I have some endpoints decorated with the [Authenticate] attribute. Now a third party client has to access the same endpoint by using a shared API key. As the code would be exactly the same for the two cases, I would like to check first if the current request comes from...

Regenerate linkedin API secret key

linkedin,api-key
I want to regenerate the API consumer secret/secret key for my linkedin application, but the regenerate key button on the linkedin application only regenerates the OAuth 1.0a user secret. I want a new OAuth2 secret key. I hope that I am not the only one who ever wanted to change...

Python unittest mock an API key

python,mocking,api-key,python-unittest
I'm writing unit tests for the Client class of client.py, which queries an API. Each test instantiates the client with c = client.Client("apikey"). Running one test at a time works fine, but running them all (e.g. with py.test) I get a 401: "Exception: Response 401: Unauthorized Access. Requests must contain...

Combining fos_oauth authenticator with single key authenticator

symfony2,authentication,oauth-2.0,api-key
I set up two authentication methods for my api: Private token authenticator by following this tutorial FOSOAuthServerBundle system for access_token auth: https://github.com/FriendsOfSymfony/FOSOAuthServerBundle Both works like a charm separately. I tried to combine those systems with this security config: security: encoders: FOS\UserBundle\Model\UserInterface: sha512 role_hierarchy: ROLE_ALLOWED_TO_SWITCH: ~ ROLE_SUPPORT: ~ ROLE_ADMIN: [ROLE_SONATA_ADMIN] ROLE_SUPER_ADMIN:...

Google Places API returns INVALID_REQUEST (Android)

android,json,google-places-api,autocompletetextview,api-key
I'm using for the first time the Google Places API on Android, because I need an AutoCompleteTextView which suggests places when the user types on it. So, I've activated the Google Places API and I've created the API key, a browser key as some tutorial says. When i run the...

Google Maps V2 API Key Not Found (But it IS there)

android,google-maps,android-manifest,api-key
I'm trying to port an existing, working Google Maps App from API V1 to V2. I followed the directions on developers.google.com scrupulously but still no joy. The problem is that "API key not found" according to LogCat. The LogCat output is below: 05-04 11:46:55.882: E/AndroidRuntime(15175): Caused by:ava.lang.RuntimeException: API key not...

Android Google Maps not working outside my computer

android,google-maps,api-key
I'm doing a project with two colleagues using Android Studio, where we need to use google maps, however this problem has appeared everytime. When I compile and have the app running on my pc Android Studio everything works great and google maps works however when I send the project to...