SubjectAccessReviewSpec class

SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set.

Constructors

SubjectAccessReviewSpec({Map<String, List<String>>? extra, List<String>? groups, NonResourceAttributes? nonResourceAttributes, ResourceAttributes? resourceAttributes, String? uid, String? user})
Default constructor.
const
SubjectAccessReviewSpec.fromJson(Map<String, dynamic> json)
Creates a SubjectAccessReviewSpec from JSON data.
factory

Properties

extra Map<String, List<String>>?
Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.
final
groups List<String>?
Groups is the groups you're testing for.
final
hashCode int
The hash code for this object.
no setterinherited
nonResourceAttributes NonResourceAttributes?
NonResourceAttributes describes information for a non-resource access request.
final
resourceAttributes ResourceAttributes?
ResourceAuthorizationAttributes describes information for a resource access request.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String?
UID information about the requesting user.
final
user String?
User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a SubjectAccessReviewSpec instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited