'How to change callback url in saml configs to match my docker ipaddress?

I'm trying to do an API using FastAPI and I have a login endpoint that is going to accept SSO logins. Im using AzureAD SSO based on SAML authentication. Everything works fine developing without docker, but I'm trying to dockerize my application and I have some errors: enter image description here

The "http://172.19.0.4:1337/api/saml/callback" is my docker container endpoint, the other one is my localhost that I specified in my SP callback URL. In Azure, I cannot change the reply url to the docker url: enter image description here

There is a way to change this ? I tried to use nginx and ngrok to change the urls, but this error persists.

Thanks for your time!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source