Authentication and authorisation slots

These are slots related to authentication and authorisation, and allow you to authenticate, change password of users, and other things related to the “auth” parts of the system. Notice, you would rarely if ever use these slots directly, since the system contains several endpoints helping you out with the consumption of these slots. However, to be complete, we’ve chosen to document these none the less.

  • magic.auth.authenticate - This slot authenticates a user towards your specific authentication and authorisation logic, which implies looking up the username in the magic.users database table, and ensuring the password is corre
  • magic.auth.change-password - Allows a user to change his or her password.
  • magic.auth.create-user - This slot allows you to create a new user in Magic, with the specified username/password combination, belonging to the specified role(s).
  • magic.auth.ensure-role - This slot allows you to ensure that the specified role exists, and if not, create it.