n4bb12 / spring-acl-example

💡Examples using Sprint Security ACLs

Home Page:https://docs.spring.io/spring-security/reference/servlet/authorization/acls.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

💡Examples using Sprint Security ACLs

https://docs.spring.io/spring-security/reference/servlet/authorization/acls.html


Languages

Language:Kotlin 100.0%