()
| 14 | private static Config CONFIG = null; |
| 15 | |
| 16 | protected Config getConfig() |
| 17 | { |
| 18 | if (CONFIG == null) |
| 19 | { |
| 20 | String clientSerets = SecretFacade.getSecret(CLIENT_SECRET_FILE_PATH, getServletContext()), |
| 21 | clientIds = SecretFacade.getSecret(CLIENT_ID_FILE_PATH, getServletContext()); |
| 22 | |
| 23 | CONFIG = new Config(clientIds, clientSerets); |
| 24 | CONFIG.AUTH_SERVICE_URL = "https://api.dropboxapi.com/oauth2/token"; |
| 25 | CONFIG.REDIRECT_PATH = "/dropbox"; |
| 26 | } |
| 27 | |
| 28 | return CONFIG; |
| 29 | } |
| 30 | |
| 31 | public DropboxAuth() |
| 32 | { |