Trait rocket_oauth2::Provider
source · pub trait Provider: Send + Sync + 'static {
// Required methods
fn auth_uri(&self) -> Cow<'_, str>;
fn token_uri(&self) -> Cow<'_, str>;
}
Expand description
A Provider
can retrieve authorization and token exchange URIs specific to
an OAuth service provider.
In most cases, StaticProvider
should be used instead of implementing
Provider
manually. Provider
should be implemented if the URIs will
change during runtime.