From e6da581020a96d28ba040f4ae389597c88e9c963 Mon Sep 17 00:00:00 2001 From: kanishkmorey <86414024+kanishkmorey@users.noreply.github.com> Date: Mon, 7 Sep 2026 17:28:25 +0530 Subject: [PATCH 1/5] Make the registratio form dynamic --- .../register/register.component.html | 269 +++++++++--------- .../component/register/register.component.ts | 81 +++++- .../36-blocks-widget/src/app/otp/model/otp.ts | 17 ++ 3 files changed, 234 insertions(+), 133 deletions(-) diff --git a/apps/36-blocks-widget/src/app/otp/component/register/register.component.html b/apps/36-blocks-widget/src/app/otp/component/register/register.component.html index 19a8c32b..afde67fd 100644 --- a/apps/36-blocks-widget/src/app/otp/component/register/register.component.html +++ b/apps/36-blocks-widget/src/app/otp/component/register/register.component.html @@ -178,141 +178,145 @@ } -
{{ otpError }}
- } -{{ otpError }}
+ } +Company Details (Optional)
++ Company Details{{ companyRequired ? '' : ' (Optional)' }} +
Feature required
+Open a saved block to manage OAuth configs and scopes.
+| Name | +
+ + {{ element.name }} + + |
+ Client ID | +
+
+ {{ element.client_id }}
+
+ |
+ Type | +
+ {{ element.client_type }}
+ @if (element.pkce_required) {
+ PKCE required + } + |
+ Scopes | +
+ |
+ Status | ++ + {{ element.status === 'active' ? 'Active' : 'Inactive' }} + + | ++ |
+
+
+ |
+
|---|
|
+ |
+
| Key | +
+ {{ element.key }} + |
+ Label | +
+ {{ element.label || '—' }} + |
+ + |
+
+
+ |
+
|---|
|
+ |
+
+ Copy this secret now — it will not be shown again. Regenerating invalidates the previous secret. +
+ @if (revealedClientId) { +Client ID
+{{ revealedClientId }}
+ Client secret
+{{ revealedSecret }}
+ + {{ oauthErrorMessage() }} +
++ This will allow {{ oauthAuthorizeData?.client_name || 'this application' }} to: +
+ @if (oauthConsentScopeLabels().length) { +This app is not requesting any specific permissions.
+ } + @if (oauthConsentError()) { +{{ oauthConsentError() }}
+ } +