Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

No security database access

I have an app that doesn't require a login, therefore there is no session token. I have a database with static data which needs no security (read only). How do I access this, as when i create a database service it requires the session token.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

No security database access

Hello Terry,

Please clarify, did you set the collection setting "Secure collection" = true?
Bu default, database rows are available for all users without sessionToken.

Could you please provide us with more details, screenshots or exact steps to reproduce this problem?

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

No security database access

I haven't set Secure Collection = true, but I see a header for session token in the service.

Are you saying that I can leave that setting blank?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

No security database access

Yes, you can leave it blank

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

No security database access

Terry,
In case you want to identify the user despite having no login required you can read the device ID of the user:

var mydevice = device.uuid;
localStorage.setItem("device_uuid", mydevice);

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

No security database access

Thanks for the update Bernie.

In this situation, however, it is a completely anonymous app.

Return to “Issues”