File tree 3 files changed +28
-0
lines changed
3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,18 @@ <h3 class="text-lg leading-6 font-medium text-gray-500">
168
168
placeholder ="Your crossid tenant (e.g., 'myorg') "
169
169
autoFocus
170
170
> </ optinput >
171
+ < optinput
172
+ name ="uiLocales "
173
+ v-model ="uiLocales "
174
+ label ="UI Locales "
175
+ autoFocus
176
+ > </ optinput >
177
+ < optinput
178
+ name ="templateId "
179
+ v-model ="templateId "
180
+ label ="Template ID "
181
+ autoFocus
182
+ > </ optinput >
171
183
</ tab >
172
184
< tab id ="wellKnown " name ="OpenID Well Known Endpoint ">
173
185
< p class ="text-xs text-gray-500 ">
@@ -765,6 +777,8 @@ <h3 class="text-lg leading-6 font-medium text-gray-500">Actions</h3>
765
777
}
766
778
return {
767
779
tenant_id : this . tenant ,
780
+ ui_locales : this . uiLocales ,
781
+ template_id : this . templateId ,
768
782
...opts ,
769
783
}
770
784
}
Original file line number Diff line number Diff line change @@ -93,6 +93,16 @@ export interface BaseClientOpts extends Partial<BaseAuthorizationCodeParams> {
93
93
* Default: 'memory'
94
94
*/
95
95
cache_type ?: typeof CACHE_INMEM | typeof CACHE_LS | typeof CACHE_SS
96
+
97
+ /**
98
+ * Defines the default locales to request for the login/consent ui
99
+ */
100
+ ui_locales ?: string
101
+
102
+ /**
103
+ * The template ID to display in the login/consent flow
104
+ */
105
+ template_id ?: string
96
106
}
97
107
98
108
/**
@@ -580,6 +590,8 @@ export default class CrossidClient {
580
590
scope : this . getFinalScope ( opts . scope ) . join ( ' ' ) ,
581
591
code_challenge : opts . code_challenge ,
582
592
code_challenge_method : 'S256' ,
593
+ ui_locales : opts . ui_locales || this . opts . ui_locales ,
594
+ template_id : opts . template_id || this . opts . template_id ,
583
595
}
584
596
}
585
597
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ export interface AuthorizationRequest {
84
84
scope : string
85
85
code_challenge : string
86
86
code_challenge_method : string
87
+ ui_locales ?: string
88
+ template_id ?: string
87
89
}
88
90
89
91
// AuthorizationCodeData returns the data required in order to process an authorization code request
You can’t perform that action at this time.
0 commit comments