1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-09 10:01:45 +03:00

Simple consent screen and storage

This commit is contained in:
Quentin Gliech
2022-04-29 12:16:39 +02:00
parent bfb00e281d
commit 28ff912029
13 changed files with 419 additions and 6 deletions

View File

@ -84,6 +84,14 @@ impl ToString for ScopeToken {
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Scope(HashSet<ScopeToken>);
impl std::ops::Deref for Scope {
type Target = HashSet<ScopeToken>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl FromStr for Scope {
type Err = InvalidScope;