Sep-16-2024, 06:37 AM
Web service: https://test.com/user/external-login app_code = "bc9daa8f-123fg-4b34-6533"
auth_data = { "AuthToken": URL, "AppId": 601 }
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
To summarise;
yes there is an external application. I received my py file to this external application via IIS. Now my dasboard opens through the external application.
There is a token address on the URL, I want to get this token
The url structure is as follows.
url=serveraddress/ Extarnal_login=application method=token. It is divided into 3 main parts url.
So in summary, my aim is to detect the url that calls my application in the application when my application is run over the web and I want to get a certain part of it.
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.
auth_data = { "AuthToken": URL, "AppId": 601 }
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
To summarise;
yes there is an external application. I received my py file to this external application via IIS. Now my dasboard opens through the external application.
There is a token address on the URL, I want to get this token
The url structure is as follows.
url=serveraddress/ Extarnal_login=application method=token. It is divided into 3 main parts url.
So in summary, my aim is to detect the url that calls my application in the application when my application is run over the web and I want to get a certain part of it.
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.