|
| 1 | +/* |
| 2 | + * @forgerock/javascript-sdk |
| 3 | + * |
| 4 | + * constants.js |
| 5 | + * |
| 6 | + * Copyright (c) 2020 - 2025 Ping Identity Corporation. All rights reserved. |
| 7 | + * This software may be modified and distributed under the terms |
| 8 | + * of the MIT license. See the LICENSE file for details. |
| 9 | + */ |
| 10 | + |
| 11 | +export const authPaths = { |
| 12 | + tokenExchange: [ |
| 13 | + '/am/auth/tokenExchange', |
| 14 | + '/am/oauth2/realms/root/access_token', |
| 15 | + '/am/oauth2/realms/root/realms/middleware/access_token', |
| 16 | + '/am/oauth2/realms/root/realms/middleware-modern/access_token', |
| 17 | + '/am/oauth2/realms/root/realms/tokens-expiring-soon/access_token', |
| 18 | + '/am/oauth2/realms/root/realms/tokens-expired/access_token', |
| 19 | + ], |
| 20 | + authenticate: [ |
| 21 | + '/am/auth/authenticate', |
| 22 | + '/am/json/realms/root/authenticate', |
| 23 | + '/am/json/realms/root/realms/middleware/authenticate', |
| 24 | + '/am/json/realms/root/realms/tokens-expiring-soon/authenticate', |
| 25 | + '/am/json/realms/root/realms/tokens-expired/authenticate', |
| 26 | + ], |
| 27 | + htmlAuthenticate: ['/am/'], |
| 28 | + authorize: [ |
| 29 | + '/am/auth/authorize', |
| 30 | + '/am/oauth2/realms/root/authorize', |
| 31 | + '/am/oauth2/realms/root/realms/middleware/authorize', |
| 32 | + '/am/oauth2/realms/root/realms/middleware-modern/authorize', |
| 33 | + '/am/oauth2/realms/root/realms/tokens-expiring-soon/authorize', |
| 34 | + '/am/oauth2/realms/root/realms/tokens-expired/authorize', |
| 35 | + ], |
| 36 | + endSession: [ |
| 37 | + '/am/auth/endSession', |
| 38 | + '/am/oauth2/realms/root/connect/endSession', |
| 39 | + '/am/oauth2/realms/root/connect/idpEndSession', |
| 40 | + '/am/oauth2/realms/root/realms/middleware/connect/endSession', |
| 41 | + '/am/oauth2/realms/root/realms/tokens-expiring-soon/connect/endSession', |
| 42 | + '/am/oauth2/realms/root/realms/tokens-expired/connect/endSession', |
| 43 | + ], |
| 44 | + userInfo: [ |
| 45 | + '/am/auth/userInfo', |
| 46 | + '/am/oauth2/realms/root/userinfo', |
| 47 | + '/am/oauth2/realms/root/realms/middleware/userinfo', |
| 48 | + '/am/oauth2/realms/root/realms/tokens-expiring-soon/userinfo', |
| 49 | + '/am/oauth2/realms/root/realms/tokens-expired/userinfo', |
| 50 | + ], |
| 51 | + revoke: [ |
| 52 | + '/am/auth/revoke', |
| 53 | + '/am/oauth2/realms/root/token/revoke', |
| 54 | + '/am/oauth2/realms/root/realms/middleware/token/revoke', |
| 55 | + '/am/oauth2/realms/root/realms/tokens-expiring-soon/token/revoke', |
| 56 | + '/am/oauth2/realms/root/realms/tokens-expired/token/revoke', |
| 57 | + ], |
| 58 | + sessions: [ |
| 59 | + '/am/auth/sessions', |
| 60 | + '/am/json/realms/root/sessions', |
| 61 | + '/am/json/realms/root/realms/middleware/sessions', |
| 62 | + '/am/json/realms/root/realms/tokens-expiring-soon/sessions', |
| 63 | + '/am/json/realms/root/realms/tokens-expired/sessions', |
| 64 | + ], |
| 65 | + accounts: ['/o/oauth2/v2/auth', '/SAMLFailure', '/SAMLTest'], |
| 66 | +}; |
0 commit comments