Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(admin-ui): implement short codes in webhooks to pass dynamic info on webhook execution #1542

Closed
jv18creator opened this issue Jan 17, 2024 · 2 comments · Fixed by #1585
Assignees
Labels
comp-admin-ui Component affected by issue or PR kind-feature Issue or PR is a new feature request

Comments

@jv18creator
Copy link
Contributor

jv18creator commented Jan 17, 2024

  • Add short codes in webhook url & request body when creating/updating a webhook.
  • Trigger webhook & replace the short codes from url/request body using the success response of an event.

Parent ticket# #1503

Screenshot 2024-01-17 at 11 46 33 AM

@jv18creator jv18creator added comp-admin-ui Component affected by issue or PR kind-feature Issue or PR is a new feature request labels Jan 17, 2024
@jv18creator jv18creator self-assigned this Jan 17, 2024
@duttarnab
Copy link
Contributor

Notes:

  1. Admin UI has features to add/edit/delete scopes, oidc clients, attributes, users etc.
  2. The created webhook can be mapped with these Admin UI features, which means that the webhook will be triggered on execution of the feature event (to which it is mapped).
  3. Each Admin feature will have its pre-defined set of short-codes which can be added to the request-body or url of the webhook.
  4. On triggering the webhooks the short-code will be replaced by the actual values by the UI.
  5. There can be only one to one mapping between webhook and Admin feature (to prevent incorrect swapping of short-codes with another feature's webhook).

@duttarnab
Copy link
Contributor

duttarnab commented Jan 31, 2024

Id Name Short Code
custom_script_write Custom Script - Add/Edit inum, name, script, scriptType, programmingLanguage, locationType, usage_type, enabled
custom_script_delete Custom Script - Delete inum
fido_configuration_write FIDO Configuration - Edit issuer, baseEndpoint, cleanServiceInterval, cleanServiceBatchChunkSize, useLocalCache, disableJdkLogger, loggingLevel, loggingLayout, externalLoggerConfiguration, metricReporterInterval, metricReporterKeepDataDays, metricReporterEnabled, personCustomObjectClassList, superGluuEnabled, sessionIdPersistInCache, oldU2fMigrationEnabled, errorReasonEnabled, fido2Configuration, requestedParties, metadataUrlsProvider, skipDownloadMdsEnabled, skipValidateMdsInAttestationEnabled
jans_link_write Jans Link - Edit sourceConfigs, inumConfig, targetConfig, ldapSearchSizeLimit, keyAttributes, keyObjectClasses, sourceAttributes, customLdapFilter, updateMethod, defaultInumServer, keepExternalPerson, useSearchLimit, attributeMapping, source, destination, snapshotFolder, snapshotMaxCount, baseDN, personObjectClassTypes, personCustomObjectClass, contactObjectClassTypes, allowPersonModification, supportedUserStatus, loggingLevel, loggingLayout, externalLoggerConfiguration, metricReporterInterval, metricReporterKeepDataDays, metricReporterEnabled, disableJdkLogger, cleanServiceInterval, linkEnabled, serverIpAddress, pollingInterval, lastUpdate, lastUpdateCount, problemCount, useLocalCache
oidc_clients_write OIDC Clients - Add/Edit deletable, clientSecret, frontChannelLogoutSessionRequired, redirectUris, responseTypes, grantTypes, applicationType, clientName, logoUri, clientUri, policyUri, tosUri, subjectType, idTokenSignedResponseAlg, tokenEndpointAuthMethod, scopes, trustedClient, persistClientAuthorizations, includeClaimsInIdToken, customAttributes, rptAsJwt, accessTokenAsJwt, accessTokenSigningAlg, disabled, runIntrospectionScriptBeforeJwtCreation, keepClientAuthorizationAfterExpiration, allowSpontaneousScopes, backchannelLogoutSessionRequired, parLifetime, requirePar, jansDefaultPromptLogin, tokenBindingSupported, authenticationMethod, displayName
oidc_clients_delete OIDC Clients - Delete inum, clientId
scopes_write Scopes - Add/Edit inum,claims,dynamicScopeScripts,defaultScope,attributes,scopeId,displayName,description,scopeType,iconUrl,umaAuthorizationPolicies,creatorType,creatorId
scopes_delete Scopes - Delete inum,scopeId
attributes_write Schema:Person - Add/Edit inum,adminCanAccess,adminCanEdit,adminCanView,dataType,description,displayName,editType,attributeName,origin,jansMultivaluedAttr.status,urn,userCanAccess,userCanEdit,userCanView,viewType,whitePagesCanView
attributes_delete Schema:Person - Delete inum,attributeName

jv18creator added a commit that referenced this issue Feb 9, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
jv18creator added a commit that referenced this issue Feb 12, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
jv18creator added a commit that referenced this issue Feb 16, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
jv18creator added a commit that referenced this issue Feb 19, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
jv18creator added a commit that referenced this issue Feb 20, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
jv18creator added a commit that referenced this issue Feb 24, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
jv18creator added a commit that referenced this issue Feb 26, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
duttarnab added a commit that referenced this issue Feb 26, 2024
feat(admin-ui): impl short codes in webhooks to pass dynamic data #1542
jv18creator added a commit that referenced this issue Feb 26, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
jv18creator added a commit that referenced this issue Feb 26, 2024
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-admin-ui Component affected by issue or PR kind-feature Issue or PR is a new feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants