Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account v3 extension more complex React component #545

Open
gdelbos opened this issue Apr 8, 2024 · 3 comments
Open

Account v3 extension more complex React component #545

gdelbos opened this issue Apr 8, 2024 · 3 comments

Comments

@gdelbos
Copy link

gdelbos commented Apr 8, 2024

Description

Currently, the proposed extension example does only present two things:

  • Simple React component with no compilation
  • Simple React component with compilation

In both case only basic HTML tag are used.
However, there is no example on how we could use the component existing in the account-ui project (Page, etc.).

Discussion

No response

Motivation

Being able to extends the current theme (adding new pages, etc.) using the component defined in the Keycloak.V3 theme.

Details

Some exemple of expected implementation:

  • Use Page in the *KeycloakManLovesJsx" component
  • Display a button for initiated action (UPDATE_EMAIL for instance)
@yodeyer
Copy link

yodeyer commented Apr 10, 2024

It would also be great to be able to import js/apps/account-ui/src/api/methods.ts.

@Benal78
Copy link

Benal78 commented Apr 18, 2024

Would be great also to have sample of working i18n in new pages.
Example

@antoine-roux
Copy link

In addition, we need a way to access the parent's KeycloakContext like it was in the v2 theme. I need to use the console accessToken.

If I use KeycloakProvider from @keycloak/keycloak-ui-shared, I'm falling into a redirection loop

  const environment = getInjectedEnvironment()
  return (
    <KeycloakProvider environment={environment}>
      <... />
    </KeycloakProvider>
  )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants