forked from baron/baron-sso
12 lines
346 B
Dart
12 lines
346 B
Dart
bool isOfflineScopeAlias(String scope) {
|
|
final normalized = scope.trim().toLowerCase();
|
|
return normalized == 'offline';
|
|
}
|
|
|
|
List<String> filterConsentScopes(Iterable<String> scopes) {
|
|
return scopes
|
|
.map((scope) => scope.trim())
|
|
.where((scope) => scope.isNotEmpty && !isOfflineScopeAlias(scope))
|
|
.toList(growable: false);
|
|
}
|