开发者

How to secure webapp reachable by other app?

开发者 https://www.devze.com 2023-02-18 15:11 出处:网络
Scenario is that my webapp gets data and clien开发者_如何转开发ts app is fetching them. Its server to server communication.

Scenario is that my webapp gets data

and clien开发者_如何转开发ts app is fetching them.

Its server to server communication.

Are there any python examples or packages

that will secure my app from unverified request?

I looked at 'nonce'.Is it over kill?

If not are there examples how i could implement it in python.


If I understood correctly your problem you could use Django, a framework for developing web application that naturally supports authentication upon web requests. For example, if you want to grant access to a view on your server to authenticated users you can just use decorators to secure it.

from django.contrib.auth.decorators import login_required

@login_required
def my_view(request):
...
0

精彩评论

暂无评论...
验证码 换一张
取 消