scopes property Null safety

List<AuthScope>? scopes

The list of required scopes.

If validator grants scope-limited authorizations (e.g., OAuth2 bearer tokens), the authorization provided by the request's header must have access to all scopes in order to move on to the next controller.

This property is set with a list of scope strings in a constructor. Each scope string is parsed into an AuthScope and added to this list.


final List<AuthScope>? scopes;