authorization_code
grant is the most commonly used grant type used for consumer-based applications, where users
are presented a popup to the system’s own login screen to enter their credentials (i.e. email and password). The system
obtains consent from the user for Versori to access their account on their behalf, and then provides Versori with
credentials (typically an access_token
and refresh_token
) which the platform uses to communicate with the external
system.
client_credentials
grant is the preferred option when there isn’t a user to act on behalf of, or in other words,
Versori is to be seen as a dedicated user when interacting with an external system.
password
grant is generally not recommended over the authorization_code
or client_credentials
grant types, but
sometimes is the only option when interacting with a system which is outside of your control. This is implemented
similarly to the client_credentials
grant, but instead of authenticating as a standalone client to the application,
you authenticate using a real user’s username and password.
Bearer
prefix.
{username}:{password}
and base64 encoded. This result is then attached to all HTTP requests on the
“Authorization” header with the Basic
prefix.