Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Div
classtocc

Contents

Table of Contents

...

Users can register their own applications using the Abiquo API or UI. For more information about registering applications with the API, including adding privileges, please read the ApplicationResourceApplicationsResource page in the API documentation.

...

The following table shows the OAuth specific endpoints that must be used when implementing the OAuth workflow.

OperationEndpoint
Request unauthenticated token/oauth/request_token
Authorize request token/oauth/authorize?oauth_token=<request token>
Get access token/oauth/access_token

The following table describes the query parameters that are used in the OAuth authentication workflow:

Query parameterDescription
oauth_tokenRequired when authorizing a request token.
oauth_callback

A callback URL where clients will be redirected after successful authentication

oauth_verifierVerifier value used when authorizing a Request Token

Why OAuth 1?

Abiquo has chosen to implement OAuth 1 because it is more secure and interoperable than OAuth 2. See http://hueniverse.com/2012/07/oauth-2-0-and-the-road-to-hell/

...

Response Headers: Content-Length, Content-Type, Date, X-Abiquo-Token.
Response Message Body: N/A.
Response Status: 200, 401, 403.
Example Response: Response of the authenticated GET over a Datacenters resource

...

With Basic Authentication, Abiquo can protect user accounts with a two factor authentication code. When two factor authentication is enabled, users will be required to provide an additional verification code to prove their identity. That token will be delivered to the user by Abiquo, using the configured mechanism. Currently there are two supported ways of getting the verification code:

EmailThe verification code will be sent to the user's mail every time a login is requested
Google AuthenticatorThe Google Authenticator mobile app is used to generate the verification code for each login


Note

Two factor authentication is an addition to Basic Auth. Applications using OAuth or the authentication cookie are not required to provide the two factor verification code. This kind of security constraint is intended to protect accounts against human abuse, while keeping the applications that integrate with the platform working in an automated way.

...

That header indicates that the verification code is missing, and the type parameter indicates how the user can get it. The possible values are:

EMAILThe user will receive an email with the verification code.
GOOGLE_AUTHENTICATORThe user should use the Google Authenticator mobile app to generate the verification code.
noneThe user has not enabled two factor authentication but the enterprise requires it to access Abiquo. User must enable 2FA using the method described above.

Once the user has the verification code, it can be provided in the X-Abiquo-OTP header, as follows:

...