i2Rest custom User object implementation

From i2Rest
Jump to: navigation, search


Out of the box, i2Rest server includes custom implementation of the OAuth2 User object. With this implementation, all user profiles defined on your IBM i server, becomes Users in OAuth2 flows. In contrast to standard implementation, you don't have to register each user in the i2Rest config file. Additionally, in the "users" section, it is not required to specify clients that are allowed to access users - each client registered in "clients" section are allowed to access any user.

To implement this custom User object (service program I2REST/I2RESTUALL), it is required to change i2Rest config object as follows:

"OAuth2" :
{
  ...
  "users":
  {
     "implementation": "I2REST/I2RESTUALL", "init_entrypoint": "OAuth2_user_init_unlim"
  },
  ...
}

This custom implementation requires registered License Key for use Premium version of the i2Rest Server.