/spring-acl-example

💡Examples using Sprint Security ACLs

Primary LanguageKotlin

Spring ACL Example

Work in Progress

How to use

Authentication

Authenticate as a certain user with the X-User header. Valid users are admin, regular, anonymous (default)

{
  "X-User": "admin"
}

Check who you are with

query Me {
  me {
    name
    permissions
  }
}

Accessing Notes

query Notes {
  notes {
    id
    text
  }
  note1: note(id: "note-1") {
    id
    text
  }
}

Updating Notes

mutation UpdateNote {
  updateNote(id: "note-1", text: "Note 1 - Edited") {
    id
    text
  }
}

Docs

Not included yet

  • Typed security annotations