pub trait ScopeResolver: Send + Sync {
// Required method
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 dyn ToolContext,
) -> Pin<Box<dyn Future<Output = Vec<String>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}Available on crate feature
auth only.Expand description
Resolves the set of scopes granted to the current user.
Implementations can pull scopes from session state, JWT claims, an external identity provider, or any other source.