consent 권한 목록에서 offline_access 표시
This commit is contained in:
1 parent
62d8563836
commit
95ac26734a
2 files changed
+9
-9
No files matched your search
@@ -1,11 +1,11 @@
|
||||
bool isRefreshTokenScopeAlias(String scope) {
|
||||
bool isOfflineScopeAlias(String scope) {
|
||||
final normalized = scope.trim().toLowerCase();
|
||||
return normalized == 'offline' || normalized == 'offline_access';
|
||||
return normalized == 'offline';
|
||||
}
|
||||
|
||||
List<String> filterConsentScopes(Iterable<String> scopes) {
|
||||
return scopes
|
||||
.map((scope) => scope.trim())
|
||||
.where((scope) => scope.isNotEmpty && !isRefreshTokenScopeAlias(scope))
|
||||
.where((scope) => scope.isNotEmpty && !isOfflineScopeAlias(scope))
|
||||
.toList(growable: false);
|
||||
}
|
||||
Reference in new issue
Block a user