Home Codeigniter rest server enable keys for login process
Reply: 0

Codeigniter rest server enable keys for login process

JianYA
1#
JianYA Published in 2018-01-12 12:59:27Z

I am using chriskacerguis Rest Server as my backend processor and have recently enabled

$config['rest_enable_keys'] = TRUE;

I created the required table and managed to generate api keys for each user. However, I discovered that I can only use this when a user is already logged in. If they are not, the server returns

{"status":false,"error":"Invalid API key "}

Is there a way to decide when this is activated and default to a standard username password authentication for logging in only?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.301645 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO