2022-07-14 12:25:24 -07:00
|
|
|
/**
|
|
|
|
* @author Daniel D. Scalzi
|
|
|
|
* @license CC-BY-NC 4.0 - https://creativecommons.org/licenses/by-nc/4.0/
|
|
|
|
*/
|
|
|
|
|
2022-02-11 16:51:28 -08:00
|
|
|
// NOTE FOR THIRD-PARTY
|
|
|
|
// REPLACE THIS CLIENT ID WITH YOUR APPLICATION ID.
|
2022-02-12 08:47:21 -08:00
|
|
|
// SEE https://github.com/dscalzi/HeliosLauncher/blob/master/docs/MicrosoftAuth.md
|
2022-02-11 16:51:28 -08:00
|
|
|
exports.AZURE_CLIENT_ID = '1ce6e35a-126f-48fd-97fb-54d143ac6d45'
|
|
|
|
// SEE NOTE ABOVE.
|
|
|
|
|
|
|
|
|
|
|
|
// Opcodes
|
|
|
|
exports.MSFT_OPCODE = {
|
|
|
|
OPEN_LOGIN: 'MSFT_AUTH_OPEN_LOGIN',
|
|
|
|
OPEN_LOGOUT: 'MSFT_AUTH_OPEN_LOGOUT',
|
|
|
|
REPLY_LOGIN: 'MSFT_AUTH_REPLY_LOGIN',
|
|
|
|
REPLY_LOGOUT: 'MSFT_AUTH_REPLY_LOGOUT'
|
|
|
|
}
|
|
|
|
// Reply types for REPLY opcode.
|
|
|
|
exports.MSFT_REPLY_TYPE = {
|
|
|
|
SUCCESS: 'MSFT_AUTH_REPLY_SUCCESS',
|
|
|
|
ERROR: 'MSFT_AUTH_REPLY_ERROR'
|
|
|
|
}
|
|
|
|
// Error types for ERROR reply.
|
|
|
|
exports.MSFT_ERROR = {
|
|
|
|
ALREADY_OPEN: 'MSFT_AUTH_ERR_ALREADY_OPEN',
|
|
|
|
NOT_FINISHED: 'MSFT_AUTH_ERR_NOT_FINISHED'
|
2022-02-12 08:47:21 -08:00
|
|
|
}
|
2022-03-03 21:02:52 -08:00
|
|
|
|
|
|
|
exports.SHELL_OPCODE = {
|
|
|
|
TRASH_ITEM: 'TRASH_ITEM'
|
|
|
|
}
|