You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
3.0 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright (C) 2017 Marcos Pereira <marcospereira.mpj@gmail.com>
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU Lesser General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Lesser General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. # OPENID URLS
  18. URL_WELL_KNOWN = "realms/{realm-name}/.well-known/openid-configuration"
  19. URL_TOKEN = "realms/{realm-name}/protocol/openid-connect/token"
  20. URL_USERINFO = "realms/{realm-name}/protocol/openid-connect/userinfo"
  21. URL_LOGOUT = "realms/{realm-name}/protocol/openid-connect/logout"
  22. URL_CERTS = "realms/{realm-name}/protocol/openid-connect/certs"
  23. URL_INTROSPECT = "realms/{realm-name}/protocol/openid-connect/token/introspect"
  24. URL_ENTITLEMENT = "realms/{realm-name}/authz/entitlement/{resource-server-id}"
  25. # ADMIN URLS
  26. URL_ADMIN_USERS = "admin/realms/{realm-name}/users"
  27. URL_ADMIN_USERS_COUNT = "admin/realms/{realm-name}/users/count"
  28. URL_ADMIN_USER = "admin/realms/{realm-name}/users/{id}"
  29. URL_ADMIN_USER_CONSENTS = "admin/realms/{realm-name}/users/{id}/consents"
  30. URL_ADMIN_SEND_UPDATE_ACCOUNT = "admin/realms/{realm-name}/users/{id}/execute-actions-email"
  31. URL_ADMIN_SEND_VERIFY_EMAIL = "admin/realms/{realm-name}/users/{id}/send-verify-email"
  32. URL_ADMIN_RESET_PASSWORD = "admin/realms/{realm-name}/users/{id}/reset-password"
  33. URL_ADMIN_GET_SESSIONS = "admin/realms/{realm-name}/users/{id}/sessions"
  34. URL_ADMIN_USER_CLIENT_ROLES = "admin/realms/{realm-name}/users/{id}/role-mappings/clients/{client-id}"
  35. URL_ADMIN_USER_GROUP = "admin/realms/{realm-name}/users/{id}/groups/{group-id}"
  36. URL_ADMIN_SERVER_INFO = "admin/serverinfo"
  37. URL_ADMIN_GROUPS = "admin/realms/{realm-name}/groups"
  38. URL_ADMIN_GROUP = "admin/realms/{realm-name}/groups/{id}"
  39. URL_ADMIN_GROUP_CHILD = "admin/realms/{realm-name}/groups/{id}/children"
  40. URL_ADMIN_GROUP_PERMISSIONS = "admin/realms/{realm-name}/groups/{id}/management/permissions"
  41. URL_ADMIN_CLIENTS = "admin/realms/{realm-name}/clients"
  42. URL_ADMIN_CLIENT = "admin/realms/{realm-name}/clients/{id}"
  43. URL_ADMIN_CLIENT_ROLES = "admin/realms/{realm-name}/clients/{id}/roles"
  44. URL_ADMIN_CLIENT_ROLE = "admin/realms/{realm-name}/clients/{id}/roles/{role-name}"
  45. URL_ADMIN_CLIENT_AUTHZ_SETTINGS = "admin/realms/{realm-name}/clients/{id}/authz/resource-server/settings"
  46. URL_ADMIN_CLIENT_AUTHZ_RESOURCES = "admin/realms/{realm-name}/clients/{id}/authz/resource-server/resource"
  47. URL_ADMIN_CLIENT_CERTS = "admin/realms/{realm-name}/clients/{id}/certificates/{attr}"
  48. URL_ADMIN_REALM_ROLES = "admin/realms/{realm-name}/roles"
  49. URL_ADMIN_USER_STORAGE = "admin/realms/{realm-name}/user-storage/{id}/sync"