Create Authentication Source

Back to Authentication Source Resources

Summary

Create a new authentication source resource as a child to a user identified by :user_name.

POST /users/:user_name/sources

Response

*Examples

Create a LOCAL authentication source for the user with a username of “jdoe”.

POST /users/jdoe/sources

{
  "AuthenticationSourceInfo": {
    "authentication_type": "LDAP",
    "key": "some dn"
  }
}

201 Created

Create multiple authentication sources for the user with a username of “jdoe”.

POST /users/jdoe/sources

[
  {
    "AuthenticationSourceInfo": {
      "authentication_type": "PAM",
      "key": "pam_key"
    }
  },
  {
    "AuthenticationSourceInfo": {
      "authentication_type": "LDAP",
      "key": "ldap_key"
    }
  }
]

201 Created