github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/services/integrationtesting/testconfigs/token.yaml (about)

     1  ---
     2  schema: |+
     3      definition user {
     4      	relation supertoken: token
     5      	relation direct_token: token
     6          permission token = direct_token + supertoken
     7      }
     8  
     9      definition token {}
    10  
    11      definition resource {
    12      	relation admin: user#token | user#supertoken
    13      }
    14  
    15  relationships: >-
    16      user:someuser#direct_token@token:sometoken#...
    17  
    18      resource:someresource#admin@user:someuser#token
    19  
    20      resource:anotherresource#admin@user:someuser#supertoken
    21  assertions:
    22      assertTrue: []
    23      assertFalse: []