Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

feat(auth): conditionally render auth providers - #16

Merged
Lukas Cenovsky (lucen-ms) merged 1 commit into
microsoft:mainfrom
callstack:conditional-auth-rendering
Oct 18, 2024
Merged

feat(auth): conditionally render auth providers#16
Lukas Cenovsky (lucen-ms) merged 1 commit into
microsoft:mainfrom
callstack:conditional-auth-rendering

Conversation

@piotrski

Copy link
Copy Markdown
Contributor

Added flags to toggle GitHub and Microsoft auth in the UI based on availability, improving UX by showing only enabled options.

Added flags to toggle GitHub and Microsoft auth in the UI based on availability, improving UX by showing only enabled options.
<a href="/auth/<%=action%>/microsoft"><img class="microsoft" src="images/windows10.png"> Microsoft (Personal)</a>
<span class="spacer"/>
<a href="/auth/<%=action%>/azure-ad"><img class="microsoft" src="images/windows10.png"> Microsoft (Work)</a><br />
<% if (isGitHubAuthenticationEnabled) { %>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to hide authentication if it is not available.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to hide authentication if it is not available.

So, a broken button is better ? 🙃

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I misunderstood the change. Thank you.

@lucen-ms
Lukas Cenovsky (lucen-ms) merged commit 2f6cfee into microsoft:main Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants