简体   繁体   中英

How can I hide the back button when authenticating to using Microsoft.Identity.Client.PublicClientApplication?

I am using Microsoft.Identity.Client.PublicClientApplication in my desktop application to authenticate the user using code like this:

        var publicClientApplication = PublicClientApplicationBuilder.Create(ClientId)
            .WithAuthority(AzureCloudInstance.AzurePublic, TenantId)
            .WithRedirectUri(ReturnUri)
            .Build();

        var authenticationResult = await publicClientApplication
            .AcquireTokenInteractive(_defaultScopes)
            .WithParentActivityOrWindow(_ownerWindow)
            .ExecuteAsync();

At the moment I get a back button on the first page of the login UI - I'd like to remove this - does anyone know how?

UPDATE: Here is the Back button I am talking about

在此处输入图片说明

This only seems to be a problem if we use https://login.microsoftonline.com - if we use https://login.windows.net then the branding is still there but the back button is not.

If you mean a button on the Microsoft UI, the answer is no. Limited customization is available through branding, app logos etc., but components of the UI cannot be modified.

As of today, you are unable to control whether the Back button is shown on Microsoft's authentication flow. The back button is shown on all hosted views.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM