# XOAUTH2
> [HTML Version](xoauth2_sbr.htm)
_Added January 2026_
**xcall OAUTH2, opcode, status, clientid\$, clientsecret\$, option, auth'endpoint\$, token'endpoint\$, challenge\$, scope\$, refresh'token\$, response\$, handle, stsmsg\$ \{,file \{,add'param\}\}**
XOAUTH2.sbx is a wrapper for [OAUTH2](oauth2_sbr.htm.md) which has the same parameter interface but with the following enhancements:
• The initial request (opcode 1) combines the OAUTH2 opcode 1, the launching of the browser for the interactive authorization step, and the subsequent opcode 2 to receive the access token (eliminating the need to explicitly call opcode 2 or to launch the browser.)
• In the case of ATE, it automatically redirects the operation to the client in order to work around the obstacle of how to launch a browser on from a Linux or other server environment.
• It incorporates the necessary JSON logic for writing and extracting the parameters.
• It adds some helpful user interface displays indicating the sequence of events, status codes, etc.
• Since it is provided in compile-it-yourself source code, it is easily customizable.
The source code to XOAUTH2.SBX may be found here: [XOAUTH2.BP in EXLIB:\[908,77\]](https://bitbucket.org/microsabio/exlib/src/master/908077/xoauth2.bp)
**See Also**
• [OAUTH2](oauth2_sbr.htm.md)[XS](keyword-types.htm.md)
**History**
2026 January: Added to the EXLIB.