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.

111 lines
7.0 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
6 years ago
4 years ago
7 years ago
7 years ago
5 years ago
  1. # -*- coding: utf-8 -*-
  2. #
  3. # The MIT License (MIT)
  4. #
  5. # Copyright (C) 2017 Marcos Pereira <marcospereira.mpj@gmail.com>
  6. #
  7. # Permission is hereby granted, free of charge, to any person obtaining a copy of
  8. # this software and associated documentation files (the "Software"), to deal in
  9. # the Software without restriction, including without limitation the rights to
  10. # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  11. # the Software, and to permit persons to whom the Software is furnished to do so,
  12. # subject to the following conditions:
  13. #
  14. # The above copyright notice and this permission notice shall be included in all
  15. # copies or substantial portions of the Software.
  16. #
  17. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  19. # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  20. # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  21. # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23. # OPENID URLS
  24. URL_REALM = "realms/{realm-name}"
  25. URL_WELL_KNOWN = "realms/{realm-name}/.well-known/openid-configuration"
  26. URL_TOKEN = "realms/{realm-name}/protocol/openid-connect/token"
  27. URL_USERINFO = "realms/{realm-name}/protocol/openid-connect/userinfo"
  28. URL_LOGOUT = "realms/{realm-name}/protocol/openid-connect/logout"
  29. URL_CERTS = "realms/{realm-name}/protocol/openid-connect/certs"
  30. URL_INTROSPECT = "realms/{realm-name}/protocol/openid-connect/token/introspect"
  31. URL_ENTITLEMENT = "realms/{realm-name}/authz/entitlement/{resource-server-id}"
  32. URL_AUTH = "{authorization-endpoint}?client_id={client-id}&response_type=code&redirect_uri={redirect-uri}"
  33. # ADMIN URLS
  34. URL_ADMIN_USERS = "admin/realms/{realm-name}/users"
  35. URL_ADMIN_USERS_COUNT = "admin/realms/{realm-name}/users/count"
  36. URL_ADMIN_USER = "admin/realms/{realm-name}/users/{id}"
  37. URL_ADMIN_USER_CONSENTS = "admin/realms/{realm-name}/users/{id}/consents"
  38. URL_ADMIN_SEND_UPDATE_ACCOUNT = "admin/realms/{realm-name}/users/{id}/execute-actions-email"
  39. URL_ADMIN_SEND_VERIFY_EMAIL = "admin/realms/{realm-name}/users/{id}/send-verify-email"
  40. URL_ADMIN_RESET_PASSWORD = "admin/realms/{realm-name}/users/{id}/reset-password"
  41. URL_ADMIN_GET_SESSIONS = "admin/realms/{realm-name}/users/{id}/sessions"
  42. URL_ADMIN_USER_CLIENT_ROLES = "admin/realms/{realm-name}/users/{id}/role-mappings/clients/{client-id}"
  43. URL_ADMIN_USER_REALM_ROLES = "admin/realms/{realm-name}/users/{id}/role-mappings/realm"
  44. URL_ADMIN_GROUPS_REALM_ROLES = "admin/realms/{realm-name}/groups/{id}/role-mappings/realm"
  45. URL_ADMIN_GROUPS_CLIENT_ROLES = "admin/realms/{realm-name}/groups/{id}/role-mappings/clients/{client-id}"
  46. URL_ADMIN_USER_CLIENT_ROLES_AVAILABLE = "admin/realms/{realm-name}/users/{id}/role-mappings/clients/{client-id}/available"
  47. URL_ADMIN_USER_CLIENT_ROLES_COMPOSITE = "admin/realms/{realm-name}/users/{id}/role-mappings/clients/{client-id}/composite"
  48. URL_ADMIN_USER_GROUP = "admin/realms/{realm-name}/users/{id}/groups/{group-id}"
  49. URL_ADMIN_USER_GROUPS = "admin/realms/{realm-name}/users/{id}/groups"
  50. URL_ADMIN_USER_PASSWORD = "admin/realms/{realm-name}/users/{id}/reset-password"
  51. URL_ADMIN_USER_LOGOUT = "admin/realms/{realm-name}/users/{id}/logout"
  52. URL_ADMIN_USER_STORAGE = "admin/realms/{realm-name}/user-storage/{id}/sync"
  53. URL_ADMIN_SERVER_INFO = "admin/serverinfo"
  54. URL_ADMIN_GROUPS = "admin/realms/{realm-name}/groups"
  55. URL_ADMIN_GROUP = "admin/realms/{realm-name}/groups/{id}"
  56. URL_ADMIN_GROUP_CHILD = "admin/realms/{realm-name}/groups/{id}/children"
  57. URL_ADMIN_GROUP_PERMISSIONS = "admin/realms/{realm-name}/groups/{id}/management/permissions"
  58. URL_ADMIN_GROUP_MEMBERS = "admin/realms/{realm-name}/groups/{id}/members"
  59. URL_ADMIN_CLIENTS = "admin/realms/{realm-name}/clients"
  60. URL_ADMIN_CLIENT = URL_ADMIN_CLIENTS + "/{id}"
  61. URL_ADMIN_CLIENT_ALL_SESSIONS = URL_ADMIN_CLIENT + "/user-sessions"
  62. URL_ADMIN_CLIENT_SECRETS = URL_ADMIN_CLIENT + "/client-secret"
  63. URL_ADMIN_CLIENT_ROLES = URL_ADMIN_CLIENT + "/roles"
  64. URL_ADMIN_CLIENT_ROLE = URL_ADMIN_CLIENT + "/roles/{role-name}"
  65. URL_ADMIN_CLIENT_ROLES_COMPOSITE_CLIENT_ROLE = URL_ADMIN_CLIENT_ROLE + "/composites"
  66. URL_ADMIN_CLIENT_ROLE_MEMBERS = URL_ADMIN_CLIENT + "/roles/{role-name}/users"
  67. URL_ADMIN_CLIENT_AUTHZ_SETTINGS = URL_ADMIN_CLIENT + "/authz/resource-server/settings"
  68. URL_ADMIN_CLIENT_AUTHZ_RESOURCES = URL_ADMIN_CLIENT + "/authz/resource-server/resource"
  69. URL_ADMIN_CLIENT_SERVICE_ACCOUNT_USER = URL_ADMIN_CLIENT + "/service-account-user"
  70. URL_ADMIN_CLIENT_CERTS = URL_ADMIN_CLIENT + "/certificates/{attr}"
  71. URL_ADMIN_CLIENT_INSTALLATION_PROVIDER = URL_ADMIN_CLIENT + "/installation/providers/{provider-id}"
  72. URL_ADMIN_CLIENT_PROTOCOL_MAPPER = URL_ADMIN_CLIENT + "/protocol-mappers/models"
  73. URL_ADMIN_CLIENT_SCOPES = "admin/realms/{realm-name}/client-scopes"
  74. URL_ADMIN_CLIENT_SCOPE = URL_ADMIN_CLIENT_SCOPES + "/{scope-id}"
  75. URL_ADMIN_CLIENT_SCOPES_ADD_MAPPER = URL_ADMIN_CLIENT_SCOPE + "/protocol-mappers/models"
  76. URL_ADMIN_CLIENT_SCOPES_MAPPERS = URL_ADMIN_CLIENT_SCOPES_ADD_MAPPER + "/{protocol-mapper-id}"
  77. URL_ADMIN_REALM_ROLES = "admin/realms/{realm-name}/roles"
  78. URL_ADMIN_REALM_ROLES_MEMBERS = URL_ADMIN_REALM_ROLES + "/{role-name}/users"
  79. URL_ADMIN_REALMS = "admin/realms"
  80. URL_ADMIN_REALM = "admin/realms/{realm-name}"
  81. URL_ADMIN_IDPS = "admin/realms/{realm-name}/identity-provider/instances"
  82. URL_ADMIN_IDP_MAPPERS = "admin/realms/{realm-name}/identity-provider/instances/{idp-alias}/mappers"
  83. URL_ADMIN_IDP = "admin/realms//{realm-name}/identity-provider/instances/{alias}"
  84. URL_ADMIN_REALM_ROLES_ROLE_BY_NAME = "admin/realms/{realm-name}/roles/{role-name}"
  85. URL_ADMIN_REALM_ROLES_COMPOSITE_REALM_ROLE = "admin/realms/{realm-name}/roles/{role-name}/composites"
  86. URL_ADMIN_REALM_EXPORT = "admin/realms/{realm-name}/partial-export?exportClients={export-clients}&exportGroupsAndRoles={export-groups-and-roles}"
  87. URL_ADMIN_FLOWS = "admin/realms/{realm-name}/authentication/flows"
  88. URL_ADMIN_FLOWS_ALIAS = "admin/realms/{realm-name}/authentication/flows/{flow-id}"
  89. URL_ADMIN_FLOWS_COPY = "admin/realms/{realm-name}/authentication/flows/{flow-alias}/copy"
  90. URL_ADMIN_FLOWS_EXECUTIONS = "admin/realms/{realm-name}/authentication/flows/{flow-alias}/executions"
  91. URL_ADMIN_FLOWS_EXECUTIONS_EXEUCUTION = "admin/realms/{realm-name}/authentication/flows/{flow-alias}/executions/execution"
  92. URL_ADMIN_FLOWS_EXECUTIONS_FLOW = "admin/realms/{realm-name}/authentication/flows/{flow-alias}/executions/flow"
  93. URL_ADMIN_AUTHENTICATOR_CONFIG = "admin/realms/{realm-name}/authentication/config/{id}"
  94. URL_ADMIN_COMPONENTS = "admin/realms/{realm-name}/components"
  95. URL_ADMIN_COMPONENT = "admin/realms/{realm-name}/components/{component-id}"
  96. URL_ADMIN_KEYS = "admin/realms/{realm-name}/keys"
  97. URL_ADMIN_USER_FEDERATED_IDENTITIES = "admin/realms/{realm-name}/users/{id}/federated-identity"
  98. URL_ADMIN_USER_FEDERATED_IDENTITY = "admin/realms/{realm-name}/users/{id}/federated-identity/{provider}"
  99. URL_ADMIN_EVENTS = 'admin/realms/{realm-name}/events'
  100. URL_ADMIN_DELETE_USER_ROLE = "admin/realms/{realm-name}/users/{id}/role-mappings/realm"