Commit 15f480a
committed
fix: handle None required_scopes in validate_scope as no restrictions
When a client is registered without scope restrictions (self.scope is None),
validate_scope() incorrectly treated it as an empty allowed-scopes list,
causing all requested scopes to be rejected with InvalidScopeError.
Now when self.scope is None, the method returns the requested scopes as-is,
treating None as 'no restrictions' rather than 'no scopes allowed'.
Fixes #22161 parent 7ba41dc commit 15f480a
1 file changed
Lines changed: 6 additions & 3 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | | - | |
| 79 | + | |
77 | 80 | | |
78 | | - | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
0 commit comments