oxd 4.0 Documentation#
oxd exposes simple, static APIs web application developers can use to implement user authentication and authorization against an OAuth 2.0 authorization server like Gluu.
The oxd Linux package includes the
oxd-server which is a simple REST application.
oxd-server is designed to work over the web (via
https), making it possible for many apps across many servers to leverage a central oxd service for OAuth 2.0 security.
Follow one of our tutorials to learn how oxd works:
To get started:
oxd-server, as described in the installation docs
Call the oxd API to implement authentication and authorization against an external Authorization Server.
Before using oxd API you will need to obtain an access token to secure the interaction with
oxd-server. You can follow the two steps below.
- Register site (returns
client_secret. Make sure the
uma_protectionscope is present in the request and
/opt/oxd-server/conf/oxd-server.ymlis set to
client_credentialsgrant type will be automatically added to clients registered using oxd server.)
- Get client token (pass
access_token. Note if
grant_typedoes not have
client_credentialsvalue you will get error to check AS logs.)
Pass the obtained access token in
Authorization: Bearer <access_token> header in all future calls to the
OpenID Connect Authentication#
OpenID Connect is a simple identity layer on top of OAuth 2.0.
Technically OpenID Connect is not an authentication protocol--it enables a person to authorize the release of personal information from an "identity provider" to a separate application. In the process of authorizing the release of information, the person is authenticated (if no previous session exists).
Learn more about authentication flows in the OpenID Connect spec.
oxd Authorization Code Flow#
You can think of the Authorization Code Flow as a three-step process:
- Redirect a person to the authorization URL and obtain a code /get-authorization-url
- Use the code to obtain tokens (access_token, id_token and refresh_token) /get-tokens-id-access-by-code
- Use the access token to obtain user claims /get-user-info
UMA 2 Authorization#
UMA 2 is a profile of OAuth 2.0 that defines RESTful, JSON-based, standardized flows and constructs for coordinating the protection of APIs and web resources.
Using oxd, your application can delegate access management decisions, like who can access which resources, from what devices, to a central UMA Authorization Server (AS) like the Gluu AS.
For more information about generating native clients, check our FAQ.
oxd 4.0 has been tested against the following OAuth 2.0 Authorization Servers:
OpenID Providers (OP)#
UMA Authorization Servers (AS)#
The oxd source code is available on GitHub.
oxd 4.0 is available under the AGPL open source license.
Gluu offers support for oxd on the Gluu Support Portal. In fact, we use oxd and a Gluu Server to provide single sign-on across our oxd portal and support app!
For guaranteed response times, private support, and more, Gluu offers VIP support.