As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Business Logic - Custom Endpoint: How can I get the username of the user making the request?
R
Ryan Henderson
started a topic
about 10 years ago
In a business logic custom endpoint, it looks like the "request.username" property is ALWAYS the appkey, rather than the user actually sending the request.
How can I get the actual username of the requesting user (from the authorization header)?
Normally, the username should ONLY be equal to the appKey when the master secret was used to login. Otherwise, the request.username should be the authenticated username. If this is not the case, then maybe something is wrong.
How are you seeing this "request.username" equal to the App Key? When testing from a device or webpage after a user has logged in? If so - something is definitely wrong.
If you are only seeing it when testing from the Kinvey API Console, this is normal.
I
Ivan Stoyanov
said
about 10 years ago
See http://support.kinvey.com/hc/communities/public/questions/200375423-Determine-If-Request-Made-with-Master-Secret
Ryan Henderson
How can I get the actual username of the requesting user (from the authorization header)?