Giter Site home page Giter Site logo

html-templates's People

Contributors

yoelhor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

html-templates's Issues

Asterisks not shown for required fields

Self-asserted page v2.1.18 adds an asterisk for required fields. Using the Azure Blue template as a custom page, these are not shown.

image

Expected (as shown in non-custom page):
image

Consider stripping https://login.microsoft.com from templates resource urls

I think the result (local resources use domain relative paths like "/templates/src/..." is probably more useful than having absolute urls that point at "https://login.microsoft.com/template/src" and don't resolve.

Alternatively, use an absolute url that is clearly a placeholder, like https://localhost/ or https://static.contoso.com/.

The following trivial patch, and rerunning would handle this.

                     // Change the directory name for the legacy template
                     if (htmlFileURI.IndexOf("templates/") < 0)
                     {
                         reply = reply.Replace("https://login.microsoftonline.com/static/tenant/default/img/",
                                       "https://login.microsoftonline.com/static/tenant/templates/classic/img/");
                     }
                     
+                    // Use domain relative urls.
+                    reply = reply.Replace("https://login.microsoftonline.com/", "/");
+
                     // Remove the static tenant
                     reply = reply.Replace("/static/tenant/", "/");
 
                     // Add the src folder to the path
                     reply = reply.Replace("/templates/", "/templates/src/");
 
                     File.WriteAllText(localpath, reply);

Thoughts?

How to reorder idp´s?

Hello together,

for me it is not clear how you achieve the order of the idp´s. In the documentation it is mentionend that the i can control the order of the idp´s by the policy:

javascript

When i look into the classic template it injects the social idp´s on top:

Classic

When i look into the AzureBlue template it is at the bottom:

AzureBlue

Both templates are injected via:
CleanShot 2023-03-15 at 08 12 23@2x

When i change the order of idp´s in my policies nothing happens. But when i use the AzureBlue Template the social idp´s appearing on the bottom.

How can i reorder the social Idp´s without using AzureBlue template? I want to use my own template.

Forgot password page & Custom HTML templates.

In the forgot password page where the user sets the new password (last step), its being reverted to the MS templates instead of custom HTML templates. The custom template works all the way till that last step even for the forgot password flow( Send email, MFA code validation). Are there any logs on what is happening for it? We are using "UserFlows" for B2C. Login custom HTML template works fine and it is the same template for login/forgot password flows. It was developed using "selfAsserted.html". We are using only sign In and reset password flows.

Low quality HTML and CSS

I'm trying to adjust the branding of the templates for a client, but it is an extreme mess. The HTML contains too many generic classes, and using ID selectors in CSS is bad practice in general because of specificity issues.
Will this get fixed in the future?

Required field descriptions not reflecting field name

Using the Azure Blue Template, when you do not populate a required field, it shows "password is required." or "text is required." instead of the attribute display name like it does without a custom template.

Custom page:
image

Not the custom page:
image

Required message displayed after a copy&paste

In the login page when you copy and paste an email address or a password, the required error message doesn't disapear. As you press on CTRL the message appear, but after the paste it should re-evaluate to hide the error message ?

image

UI 'working' spinner is never triggered

As far as I can tell, there are various actions where the UI is designed to reflect that work is going on in the background. For instance, when you press 'Send verification code' there should be an indication that server-side activity is occurring until the UI is updates with the 'Verify Code' boxes.

This spinner is written into the HTML:

<div class="working" id="email_ver_wait" aria-label="Please wait" aria-hidden="true" role="alert" aria-live="polite" style="display: none;"></div>

If you manually take out the display:none you can see that this is a dot-spinner. It gives an indication of 'activity'.

However, no version of the templates as provided actually allow this to be displayed. When (for instance) the user presses 'Send verification code' there is no indication that anything is going on for a few seconds, which leads to a bad user experience. Clearly the UI should be showing the spinner.

I've tried different versions of unifiedssp and selfasserted templates, none works I believe.

Thank you.

Feedback the default tab order issue not fix in sample code | incorrect order: username >> signin button>> password

Hi Team,

The expected tab order is username >>password >> sign-in button. But if I use the sample code https://github.com/azure-ad-b2c/html-templates/blob/main/templates/AzureBlue/unified.html, the order will be username >> signin button >> password. It cannot fix by upgrading the api.signin content definition version 2.1.7.

I have test directly download the default blue ocean sign-in html 2.1.7 version by browser tool. The issue cannot reproduce. I also test directly use default ui definition without custom UI. The issue cannot reproduce either.

It seems to relate the current blue ocean html sample code is not up-to-date. https://github.com/azure-ad-b2c/html-templates/blob/main/templates/AzureBlue/unified.html

Download by browser tool.txt

All image URLs produce 404s

When trying to load the images in the example UIs, all the images do not load and produce 404 errors. Is this on purpose? Are they not deployed anywhere? If they are and those are supposed to load, please fix that. Thank you.

For an example, just try to go to https://login.microsoftonline.com/templates/src/backgrounds/1-1.png in your browser. It doesn't load.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.