microsoft / onefuzz

A self-hosted Fuzzing-As-A-Service platform
MIT License
2.82k stars 199 forks source link

Update the redirect uri if using a custom domain #3228

Closed mgreisen closed 1 year ago

mgreisen commented 1 year ago

Information

Provide detailed reproduction steps (if any)

The redirect URI on the app registration, Authentication tab does not have the custom domain name. It should be added here https://github.com/microsoft/onefuzz/blob/512bb078b76aae36b700d340ba9e9ee8673cc3f4/src/deployment/deploy.py#L563 during deployment.

We should add https://<customDomain>/.auth/login/aad/callback as a redirect URI if the custom domain exists.

AB#155293