Skip to main content

TokenAdmission

Trait TokenAdmission 

Source
pub trait TokenAdmission {
    // Required method
    fn admits(&self, did: &str, client_id: &ClientId, scope: &ScopeSet) -> bool;
}
Expand description

Asked before any token is issued: whether client_id may hold one for did, carrying scope, right now.

Required Methods§

Source

fn admits(&self, did: &str, client_id: &ClientId, scope: &ScopeSet) -> bool

true to issue the token.

Implementors§