Skip to content

Commit

Permalink
Adds a missing Keycloak UI export (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho authored Mar 22, 2024
1 parent 1236648 commit ce61dcf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions waspc/data/Generator/templates/sdk/wasp/client/auth/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export type { CustomizationOptions } from '../../auth/forms/types'
{=# isGoogleAuthEnabled =}
export { SignInButton as GoogleSignInButton } from '../../auth/helpers/Google'
{=/ isGoogleAuthEnabled =}
{=# isKeycloakAuthEnabled =}
export { SignInButton as KeycloakSignInButton } from '../../auth/helpers/Keycloak'
{=/ isKeycloakAuthEnabled =}
{=# isGitHubAuthEnabled =}
export { SignInButton as GitHubSignInButton } from '../../auth/helpers/GitHub'
{=/ isGitHubAuthEnabled =}
Expand Down
1 change: 1 addition & 0 deletions waspc/src/Wasp/Generator/SdkGenerator/Client/AuthG.hs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ getAuthProvidersJson :: AS.Auth.Auth -> Aeson.Value
getAuthProvidersJson auth =
object
[ "isGoogleAuthEnabled" .= AS.Auth.isGoogleAuthEnabled auth,
"isKeycloakAuthEnabled" .= AS.Auth.isKeycloakAuthEnabled auth,
"isGitHubAuthEnabled" .= AS.Auth.isGitHubAuthEnabled auth,
"isUsernameAndPasswordAuthEnabled" .= AS.Auth.isUsernameAndPasswordAuthEnabled auth,
"isEmailAuthEnabled" .= AS.Auth.isEmailAuthEnabled auth
Expand Down
1 change: 1 addition & 0 deletions waspc/src/Wasp/Generator/SdkGenerator/Server/AuthG.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ getAuthProvidersJson :: AS.Auth.Auth -> Aeson.Value
getAuthProvidersJson auth =
object
[ "isGoogleAuthEnabled" .= AS.Auth.isGoogleAuthEnabled auth,
"isKeycloakAuthEnabled" .= AS.Auth.isKeycloakAuthEnabled auth,
"isGitHubAuthEnabled" .= AS.Auth.isGitHubAuthEnabled auth,
"isUsernameAndPasswordAuthEnabled" .= AS.Auth.isUsernameAndPasswordAuthEnabled auth,
"isEmailAuthEnabled" .= AS.Auth.isEmailAuthEnabled auth
Expand Down

0 comments on commit ce61dcf

Please sign in to comment.