Using Tide as redirect server with OAuth2-crate

After adding support for async/await / futures 0.3 in the OAuth2 crate I would love to use tide as a redirect server. I have added an example in my fork here. The Issue I have now, is how do I terminate the tide server once a correct request has been received and return the auth code that I have received ? Let me know if there is a better solution than using tide here, I really like the simplicity of it though.

FYI Build example using:

cargo build --example github_tide --features futures-03 --no-default-features

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.