1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] How do I capture the url address from a web request to Python? [closed]

Discussão em 'Python' iniciado por Stack, Setembro 13, 2024.

  1. Stack

    Stack Membro Participativo

    Web service: https://test.com/user/external-login app_code = "bc9daa8f-123fg-4b34-6533" auth_data = { "AuthToken": URL, "AppId": 6021 }

    If the token from the URL exists in the web service, the data returned by the web service comes with a 200 code. If it returns NULL or a 202 code, it will do nothing.

    I created a dashboard with Python Dash and published it on IIS. Another goal is to control who can access this dashboard based on the token, but for this, I want my code published on IIS to detect when a request comes from the website, extract the parameter from this URL, and validate it in the web service. How do I do this?

    I have published my application on IIS and linked it to a website. When I log into the website and click on my application, a URL like this appears: 110.113.test22.4/aasddewqw=gsdngjksfngkfjngdkfngkdfjgjndfjgndfgndfjgdfgj At this point, a validation needs to be performed. My Python code should detect when it is triggered by the website, extract the 't' parameter from the URL, and automatically assign this 't' parameter to the auth_token variable in the web service.

    How can I verify?

    Continue reading...

Compartilhe esta Página