add more to default provider
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,10 @@ export const manifests: Array<ManifestAuthProvider> = [
|
||||
forProviderName: 'Umbraco',
|
||||
weight: 1000,
|
||||
meta: {
|
||||
label: 'Umbraco',
|
||||
label: 'Sign in with Umbraco',
|
||||
defaultView: {
|
||||
look: 'primary',
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user