How to handle 'open-sourcing' your application, when it uses a personal API key? [duplicate]

StackOverflow https://stackoverflow.com/questions/3451082

  •  27-09-2019
  •  | 
  •  

Question

Possible Duplicate:
How to open-source an application that uses API keys

I'm creating an application that uses a personal API key. How can I open source the application?

Possible Duplicate: How to open-source an application that uses API keys

I guess now my question is, which is a good option to use?

Was it helpful?

Solution

Make the API key a configuration item so that it can be specified by the person using the code rather than having it hard-coded within the source.

OTHER TIPS

Mask the key in the application with instructions that the user should get his own key. Would be best if this configurable from a config file or UI.

It may also be good to have a screen demo of the application, so the target audience knows how it is suppose to behave when they put in their own key.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top