Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

question on DB-Master Key

I have a service that needs to update the user's password - with normal rights - the update fails (that's good).

So - I realize I need to use the DB-Master key - I'm including my user-update-service - and have included the correct parameter - however .... do I really need to include the actual Master key in this service as a constant (I assume not).... is there a bracketed variable that I can use like for the database id we use {database_id} ... what's the right construct for the master-key ? I've tried {master_key} (perhaps that would be consistent with the {database_id} .... but that's not correct...

What's the right construct? there is one (i'm sure lol...) ??

Picture of the UI where I am using it (Service succeeds with the 'hard coded' db master key - but I'd sure prefer not to use it....)..

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

question on DB-Master Key

Hi Bruce,

Why not using a Generic Security Context service in your case? -- http://devcenter.appery.io/documentat...

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

question on DB-Master Key

Hi Illya,

Thanks much for the pointer.... Looking at that right now. Appreciate the help....

Bruce

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

question on DB-Master Key

Illya

just to follow up - as I'm sure you know - this worked perfectly. Thanks!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

question on DB-Master Key

Thanks for update here, Bruce! You're welcome ;)

Pete Gombert
Posts: 0
Joined: Tue Mar 18, 2014 2:42 pm

question on DB-Master Key

I am having this exact same issue, but I am not clear on how Bruce implemented the Generic Security Context (GSC) in order to utilize the Master Key without hardcoding it into the header of the service and / or exposing it in an unsafe manner. Can you provide a little more detail on how I can use the GSC to accomplish this. I am trying to do the same thing Bruce was, update a username and password for a user that is different from the one logged in.

Thanks

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

question on DB-Master Key

Hello Pete,

You can use secure proxy for that: https://devcenter.appery.io/documenta...

Return to “Issues”