-
I am planning to use Azure AD for authentication and I need to redirect the user to the login page for microsoft. I can't find any documentation on how to redirect to a different URL with a different host. Is it currently possible in actix 4? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
There are redirect responders in actix-web-lab: https://docs.rs/actix-web-lab/0.16/actix_web_lab/web/struct.Redirect.html#method.to async fn handler() -> impl Responder {
Redirect::to("https://duck.com")
} The Redirect struct will be promoted to Actix Web in an upcoming 4.x release. You can also construct redirect responses yourself using 30x status codes and a Location header. |
Beta Was this translation helpful? Give feedback.
-
Isn't there anything in the |
Beta Was this translation helpful? Give feedback.
There are redirect responders in actix-web-lab: https://docs.rs/actix-web-lab/0.16/actix_web_lab/web/struct.Redirect.html#method.to
The Redirect struct will be promoted to Actix Web in an upcoming 4.x release.
You can also construct redirect responses yourself using 30x status codes and a Location header.