add: app sdk client auth flow example
This commit is contained in:
parent
0138bf4cd4
commit
9ccbc69405
9 changed files with 95 additions and 27 deletions
|
@ -112,7 +112,7 @@ macro_rules! get_user_from_token {
|
|||
Ok((grant, ua)) => {
|
||||
if grant.scopes.contains(&$grant_scope) {
|
||||
if ua.permissions.check_banned() {
|
||||
Some(tetratto_core::model::auth::User::banned())
|
||||
None
|
||||
} else {
|
||||
Some(ua)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue