modern-minister-63236
11/17/2022, 9:50 PMRelationQuery
for delete requests. Presumably leaving either nils for the values in the struct, or pointers to empty strings, makes a query that is a “select *” equivalent, therefore deleting all tuples? This doesn’t get me very far, sadly, my tuples persist in the database.
This is my code:
query := rts.RelationQuery{
Namespace: getStringPtr("User"),
Object: getStringPtr(""),
Relation: getStringPtr(""),
Subject: nil,
}
_, err := wcl.DeleteRelationTuples(context.Background(), &rts.DeleteRelationTuplesRequest{
RelationQuery: &query,
})
if err != nil {
panic("Encountered error: " + err.Error())
}
wcl is a WriteServiceClient
that works for insertsmodern-minister-63236
11/18/2022, 11:55 AMquery := rts.RelationQuery{
Namespace: nil,
Object: nil,
Relation: nil,
Subject: nil,
}
still a bit confused by the logic, the documentation seems to leave some room for interpretation on how that worksOry is the largest open source community in the world for cloud software application security. We maintain advanced open source security software solving authentication, authorization, access control, application network security, and delegation. Ory implements a variety of industry and best-practice standards including OAuth 2.0 / OAuth 2.1, OpenID Connect, Zero Trust Networking, Google Zanzibar Policy Framework, FIDO2 U2F, WebAuthn, TOTP, and more.
Powered by