You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have tried to create a 'ReadAccess' directive for Authorisation on the Query object.
onObject method for the directive is not called on each request on all environments but only once instead at the server startup
onObject method decides the access to the QUERY on each request and problem is it gives Access denied since its never executes later on
Below is the code
directive @readaccess on OBJECT | FIELD_DEFINITION
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have tried to create a 'ReadAccess' directive for Authorisation on the Query object.
onObject method for the directive is not called on each request on all environments but only once instead at the server startup
onObject method decides the access to the QUERY on each request and problem is it gives Access denied since its never executes later on
Below is the code
directive @readaccess on OBJECT | FIELD_DEFINITION
type Query @readaccess{
query1(input : InputArgumentVO!): [OuputTypeVO!]!
query2(input : InputArgumentVO): [OuputTypeVO!]!
query3(input : InputArgumentVO!): [OuputTypeVO!]!
}
@DgsDirective(name = "ReadAccess")
@slf4j
public class ReadAccessDirectiveWiring implements SchemaDirectiveWiring {
}
Beta Was this translation helpful? Give feedback.
All reactions