Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
When User raise a request for Access. User's Manager needs to approve the request through email.

The email will have Approve and Reject link as API endpoint URL.
i.e.,
Approve - https://example.com/api/approve,
Reject - https://example.com/api/reject

When Manager clicks either of the link, it hits the endpoint and their response is Captured in Database.

There is Complexity here, for better understanding I will go with example.

If the actual approver manager is AAA@ymail.com, and the user request is send to AAA@ymail.com.

If incase the Actual approver forwards the email to other manager BBB@ymail.com and if he/she approves from the email, then it needs to identified and the response should not be captured in the database.


For your Information,
1. Our Web application is developed in ASP.NET.
2. Manager doesn't have access to UI.

What I have tried:

I had an idea of sending API endpoint URL with TOKEN.
Is it possible to verify the responded user is whether the actual manager or different manager, when the response API endpoint URL is hit???

Looking for an approach to authenticate the authorized user.

Thanks,
Vaithilingam Alagappan
Posted
Updated 10-Apr-24 6:44am
Comments
PIEBALDconsult 10-Apr-24 12:47pm    
"2. Manager doesn't have access to UI." -- That seems like a bad idea to me. Why can't a manager access the UI and approve or deny any pending requests?
Vaithilingam Alagappan 10-Apr-24 13:07pm    
Only particular user have access to the web application.
It is not mandatory for their Manager's to be the user of web application.
Dave Kreskowiak 10-Apr-24 15:18pm    
That's a bad idea. You're giving managers only a single method of approving access using only an email that can accidentally be deleted.

I'm afraid you need to go back to whoever gave you the requirements and explain this is a monumentally bad idea, and also impossible to implement. If one manager forwards it to another, you can't prevent that, and you can't change the contents of the link back to your app. Basically, this is a bad requirement, so your client needs to be walked through why that's not good.
 
Share this answer
 
Quote:
When Manager clicks either of the link, it hits the endpoint and their response is Captured in Database.

To prevent sharing, the only option is for the intended recipient to log back in, then you verify both the account used to sign in and the code used to record the response.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900