@@ -50,7 +50,7 @@ const messageVariant = ref<string | null>(null);
5050const cILogonIdps = ref <Idp []>([]);
5151const selected = ref <Idp | null >(null );
5252const rememberIdp = ref (false );
53- const cilogonOrCustos = ref <" cilogon" | " custos " | null >(null );
53+ const cilogon = ref <" cilogon" | null >(null );
5454const toggleCilogon = ref (false );
5555
5656const oIDCIdps = computed <OIDCConfig >(() => (isConfigLoaded .value ? config .value .oidc : {}));
@@ -60,22 +60,21 @@ const filteredOIDCIdps = computed(() => getFilteredOIDCIdps(oIDCIdps.value, prop
6060const cilogonListShow = computed (() => getNeedShowCilogonInstitutionList (oIDCIdps .value ));
6161
6262const cILogonEnabled = computed (() => oIDCIdps .value .cilogon );
63- const custosEnabled = computed (() => oIDCIdps .value .custos );
6463
6564onMounted (async () => {
6665 rememberIdp .value = getIdpPreference () !== null ;
6766
68- // Only fetch CILogonIDPs if custos/ cilogon configured
67+ // Only fetch CILogonIDPs if cilogon configured
6968 if (cilogonListShow .value ) {
7069 await getCILogonIdps ();
7170 }
7271});
7372
74- function toggleCILogon(idp : " cilogon" | " custos " ) {
75- if (cilogonOrCustos .value === idp || cilogonOrCustos .value === null ) {
73+ function toggleCILogon(idp : " cilogon" ) {
74+ if (cilogon .value === idp || cilogon .value === null ) {
7675 toggleCilogon .value = ! toggleCilogon .value ;
7776 }
78- cilogonOrCustos .value = toggleCilogon .value ? idp : null ;
77+ cilogon .value = toggleCilogon .value ? idp : null ;
7978}
8079
8180async function clickOIDCLogin(idp : string ) {
@@ -186,7 +185,7 @@ function getIdpPreference() {
186185 <!-- OIDC login-->
187186 <BForm v-if =" cilogonListShow" id =" externalLogin" class =" cilogon" >
188187 <div v-if =" props.loginPage" >
189- <!-- Only Display if CILogon/Custos is configured-->
188+ <!-- Only Display if CILogon is configured-->
190189 <BFormGroup label =" Use existing institutional login" >
191190 <Multiselect
192191 v-model =" selected"
@@ -212,31 +211,18 @@ function getIdpPreference() {
212211 <LoadingSpan v-if =" loading" message =" Signing In" />
213212 <span v-else >Sign in with Institutional Credentials*</span >
214213 </GButton >
215- <!-- convert to v-else-if to allow only one or the other. if both enabled, put the one that should be default first-->
216- <GButton
217- v-if =" Object.prototype.hasOwnProperty.call(oIDCIdps, 'custos')"
218- :disabled =" loading || selected === null"
219- @click =" clickCILogin('custos')" >
220- <LoadingSpan v-if =" loading" message =" Signing In" />
221- <span v-else >Sign in with Custos*</span >
222- </GButton >
214+
223215 </div >
224216
225217 <div v-else >
226218 <GButtonGroup class =" w-100" >
227219 <GButton
228220 v-if =" cILogonEnabled"
229- :pressed =" cilogonOrCustos === 'cilogon'"
221+ :pressed =" cilogon === 'cilogon'"
230222 @click =" toggleCILogon('cilogon')" >
231223 Sign in with Institutional Credentials*
232224 </GButton >
233225
234- <GButton
235- v-if =" custosEnabled"
236- :pressed =" cilogonOrCustos === 'custos'"
237- @click =" toggleCILogon('custos')" >
238- Sign in with Custos*
239- </GButton >
240226 </GButtonGroup >
241227
242228 <BFormGroup v-if =" toggleCilogon" class =" mt-1" >
@@ -254,18 +240,18 @@ function getIdpPreference() {
254240 v-if =" toggleCilogon"
255241 class =" mt-1"
256242 :disabled =" loading || selected === null"
257- @click =" clickCILogin(cilogonOrCustos )" >
258- Login via {{ cilogonOrCustos === "cilogon" ? " CILogon" : "Custos" }} *
243+ @click =" clickCILogin(cilogon )" >
244+ Login via CILogon *
259245 </GButton >
260246 </BFormGroup >
261247 </div >
262248
263249 <p class =" mt-3" >
264250 <small class =" text-muted" >
265- * Galaxy uses CILogon via Custos to enable you to log in from this organization. By clicking
251+ * Galaxy uses CILogon to enable you to log in from this organization. By clicking
266252 'Sign In', you agree to the
267253 <a href =" https://ca.cilogon.org/policy/privacy" >CILogon</a > privacy policy and you agree to
268- share your username, email address, and affiliation with CILogon, Custos, and Galaxy.
254+ share your username, email address, and affiliation with CILogon and Galaxy.
269255 </small >
270256 </p >
271257 </BForm >
0 commit comments