0

I just started of in Django and want to implement this. But not sure whether my approach is correct or not. Can you validate?

Requirement : My Server will provide a service via an url endpoint. Client will authenticate (with id and password supplied to him via separate channel. So, no signup page available) with his credentials and avail the service. i will do the work asynchronously and reply with status.

My Approach. . Client will be provided a username and password via separate channel. . Client will do an https connection. . Client will encrypt the password with my public Key and will call my URL endpoint with id, password, data. . i will acknowledge the request and will ping client back when the work is done.

Things i am worried about: . how to stop snoopers from replacing the data portion and reforwarding the request to me. . how to stop snoopers from reusing the encrypted password from original request and sending their own request.

Are there any frameworks which will provide this support inbuilt? OR This will not occur at all in my current setup?

I know Django provides an authentication module. But not sure about its capabilities.

4

1 回答 1

0

该框架将帮助您在应用程序级别启用安全性。您可以使用 Django 来帮助您确保只有经过适当身份验证的用户才能被授予访问受限页面的权限,并提供许多其他开箱即用的 安全措施。

重放攻击通常可以通过使用session来防止,这在 Django 中有很好的记录。

根据您对实现的描述,最大的担忧是“客户端将通过单独的渠道提供用户名和密码”的声明。

于 2013-09-09T16:11:34.323 回答