Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to give more protettion ? #156

Closed
msliman opened this issue Nov 29, 2017 · 1 comment
Closed

How to give more protettion ? #156

msliman opened this issue Nov 29, 2017 · 1 comment

Comments

@msliman
Copy link

msliman commented Nov 29, 2017

The problem is the generated key is put statically like:
x-authorization 29060eed4acf341bc595a435674ba9a2a6a17335

So, any body can hack the app and see it so can access any API then ?

Is that logic? and how can overcome this problem ?

@chrisbjr
Copy link
Owner

Hi @msliman to provide more protection, always encrypt your traffic with SSL (HTTPS) and make sure to always store the API key securely.

If you need more protection, consider adding an expiry to the API key.

There are much more "secure" and standard ways to secure APIs like JWT. This package does not aim to replace or be similar to JWT but instead go through the route of providing a basic API authentication by using unique keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants