Implement oauth authentication and authorization
|Assigned to:||-||% Done:||
To fully integrate Katello, Foreman API must be accessible with oauth. Once oauth is enabled in the Foreman configuration and secret and token is given, Foreman should authenticate all requests with valid oauth and automatically authorize those requests as "admin". Separate role can be used for this, but all permission must be given. Katello is expected to be able to do anything.
Updated by Lukas Zapletal about 1 year ago
We will be sending HTTP header called "foreman-user" set to the current logged Katello user. Once user is created in Katello, we will create it also in Foreman via API. So it is possible to work also "on behalf" of a user.