Interface GraphQLObligation.FilterReadAttributes
- All Superinterfaces:
AutoCloseable,Closeable,GraphQLObligation,Obligation
- Enclosing interface:
- GraphQLObligation
This obligation type can be used to filter (i.e. change) the resource attributes that are returned
on a query or on a mutation.
Any output field whose value is provided by a
ResourceAttributes instance (e.g. Account type),
will have its value passed in to the filterReadAttributes(Input) method.
This method can then:
- Return the original attributes
- Return a changed version of the attributes
- Return
Optional.empty(), signaling that the request to read the attributes should be denied
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceNested classes/interfaces inherited from interface se.curity.identityserver.sdk.authorization.GraphQLObligation
GraphQLObligation.BeginOperation, GraphQLObligation.FilterReadAttributes -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from interface se.curity.identityserver.sdk.authorization.GraphQLObligation
close
-
Method Details
-
filterReadAttributes
Optional<ResourceAttributes<?>> filterReadAttributes(GraphQLObligation.FilterReadAttributes.Input input) - Parameters:
input- an input object containing the resource attributes- Returns:
- The (eventually changed) resource attributes
-