Skip to content

feat(oauth): add OauthProviderButton and OauthProviderLogo - #182

Merged
roncodes merged 1 commit into
release/v0.4.3from
feature/oauth-provider-button
Sep 22, 2026
Merged

roncodes merged 1 commit into
release/v0.4.3from
feature/oauth-provider-button

Conversation

@roncodes

Copy link
Copy Markdown
Member

Adds <OauthProviderButton> and <OauthProviderLogo> for v0.4.3.

<OauthProviderButton @provider={{provider}} @text={{t "auth.login.oauth.continue-with" provider=provider.label}} @onClick={{this.continueWithProvider}} />

It's a btn-auth block button (from #179) with the provider's logo in the usual icon slot at the far left. Some providers get their own colours as re-colourings of the --btn-auth-* variables. The hover and border stay the same for all.

Provider Light Dark
Google white, full-colour G gray-900, G on a white disc (Google requires the G on white)
Microsoft white, four-colour logo gray-900
Apple black gray-900
GitHub #24292F gray-900

Why in ember-ui: these buttons currently live in the console. The Fleetbase Cloud sign-up page is an engine component (internals) and can't render console components. Moving them here lets the console login page, the console sign-up page and the Cloud sign-up page share one set of buttons.

Tests: integration tests for both components cover the logos, where the logo sits, the text, and clicks, including disabled.

RELEASE.md now lists this under v0.4.3 (#181).

Used by fleetbase/fleetbase#672 (login and sign-up pages) and fleetbase/internals#52 (Cloud sign-up).

A "Continue with <provider>" button for sign-in and sign-up pages: a
btn-auth block button with the provider's logo in the icon slot at the
far left, re-coloured where a provider's guidelines call for it. Google
and Microsoft stay on btn-auth's white with their full-colour logos.
Apple is black and GitHub near-black. Every provider is gray-900 in dark
mode, where Google's G sits on the white disc Google requires.

Moved here from the console so the Fleetbase Cloud sign-up page, which is
an engine component and can't use console components, can render the
same buttons. RELEASE.md adds it to v0.4.3.
roncodes added a commit to fleetbase/fleetbase that referenced this pull request Sep 22, 2026
Signing up with a provider already worked, but the only way in was the
login page's "Continue with ..." buttons. The sign-up page ("Create a new
Account") now offers the same buttons above the form, then "Or sign up
with email".

- They show only when a provider is enabled and an administrator allows
  sign-ups through one (the new `allow_registration` in the provider
  list), and not once the form is already prefilled from a provider.
- Pressing one starts the usual handshake with `intent: 'signup'`. An
  unknown identity comes back to the prefilled form as before. Someone
  who already has an account is signed in and told "You already have an
  account, so we signed you in."
- The login page, the sign-up page and the connected-accounts panel now
  use ember-ui's OauthProviderButton and OauthProviderLogo
  (fleetbase/ember-ui#182, v0.4.3). The console's own logo component and
  provider button CSS are removed.

Needs @fleetbase/ember-ui 0.4.3; bump the dependency once it is released.
@roncodes
roncodes merged commit 10a4ec4 into release/v0.4.3 Sep 22, 2026
4 checks passed
roncodes added a commit to fleetbase/fleetbase that referenced this pull request Sep 22, 2026
Signing up with a provider already worked, but the only way in was the
login page's "Continue with ..." buttons. The sign-up page ("Create a new
Account") now offers the same buttons above the form, then "Or sign up
with email".

- They show only when a provider is enabled and an administrator allows
  sign-ups through one (the new `allow_registration` in the provider
  list), and not once the form is already prefilled from a provider.
- Pressing one starts the usual handshake with `intent: 'signup'`. An
  unknown identity comes back to the prefilled form as before. Someone
  who already has an account is signed in and told "You already have an
  account, so we signed you in."
- The login page, the sign-up page and the connected-accounts panel now
  use ember-ui's OauthProviderButton and OauthProviderLogo
  (fleetbase/ember-ui#182, v0.4.3). The console's own logo component and
  provider button CSS are removed.

Needs @fleetbase/ember-ui 0.4.3; bump the dependency once it is released.
roncodes added a commit to fleetbase/fleetbase that referenced this pull request Sep 23, 2026
Signing up with a provider already worked, but the only way in was the
login page's "Continue with ..." buttons. The sign-up page ("Create a new
Account") now offers the same buttons above the form, then "Or sign up
with email".

- They show only when a provider is enabled and an administrator allows
  sign-ups through one (the new `allow_registration` in the provider
  list), and not once the form is already prefilled from a provider.
- Pressing one starts the usual handshake with `intent: 'signup'`. An
  unknown identity comes back to the prefilled form as before. Someone
  who already has an account is signed in and told "You already have an
  account, so we signed you in."
- The login page, the sign-up page and the connected-accounts panel now
  use ember-ui's OauthProviderButton and OauthProviderLogo
  (fleetbase/ember-ui#182, v0.4.3). The console's own logo component and
  provider button CSS are removed.

Needs @fleetbase/ember-ui 0.4.3; bump the dependency once it is released.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant