ramosbugs / oauth2-rs

Extensible, strongly-typed Rust OAuth2 client library
Apache License 2.0
906 stars 159 forks source link

Axum example #247

Open ikehz opened 7 months ago

ikehz commented 7 months ago

I've been working on an example with Axum, & would be happy to clean it up & link here along with the Actix contributed example.

I'm not a security engineer, so it would need to be reviewed with some skepticism.

ramosbugs commented 7 months ago

Sounds good! I'll try to find some time to review it if you submit a PR adding the contributed example link.

thor314 commented 6 months ago

@ikehz, would love to see your example if you've time.

pickfire commented 4 weeks ago

I have added an axum example for 5.0.0-alpha.4. I find the addition of type states made it a mess, I wonder how should I pass around the type next time.

struct AppState {
    client: BasicClient<EndpointSet, EndpointNotSet, EndpointNotSet, EndpointSet, EndpointSet>,
    ...
}

https://github.com/pickfire/oauth2-axum

ramosbugs commented 4 weeks ago

I have added an axum example for 5.0.0-alpha.4. I find the addition of type states made it a mess, I wonder how should I pass around the type next time.

I'd suggest using a type alias.