add more to default provider

This commit is contained in:
Jacob Overgaard
2024-04-05 12:08:42 +02:00
parent c0bb2d3d97
commit abc1a9f32e
2 changed files with 11 additions and 3 deletions

View File

@@ -65,12 +65,17 @@ export class UmbAppAuthController extends UmbControllerBase {
this.#authContext.makeAuthorizationRequest(redirectProvider.forProviderName);
} else {
// Show the provider selection screen
console.log('show modal for', availableProviders);
const modalManager = await this.getContext(UMB_MODAL_MANAGER_CONTEXT);
await modalManager
const selected = await modalManager
.open(this._host, UMB_MODAL_APP_AUTH)
.onSubmit()
.catch(() => undefined);
if (!selected?.providerName) {
return false;
}
this.#authContext.makeAuthorizationRequest(selected.providerName);
}
}

View File

@@ -8,7 +8,10 @@ export const manifests: Array<ManifestAuthProvider> = [
forProviderName: 'Umbraco',
weight: 1000,
meta: {
label: 'Umbraco',
label: 'Sign in with Umbraco',
defaultView: {
look: 'primary',
},
},
},
];