Fix last bugs before relasing v2
This commit is contained in:
parent
82e7a7edae
commit
88a4c97428
@ -20,6 +20,12 @@
|
||||
<img src="https://user-images.githubusercontent.com/6702424/110260457-a1c3d380-7fac-11eb-853a-80459b65626b.png">
|
||||
</p>
|
||||
|
||||
**NEW in v2**
|
||||
- It's now possible to implement custom `.ftl` pages.
|
||||
- Support for Keycloak plugins that introduce non standard ftl values.
|
||||
(Like for example [this plugin](https://github.com/micedre/keycloak-mail-whitelisting) that define `authorizedMailDomains` in `register.ftl`).
|
||||
|
||||
**V2 is not yet documented, most users should stick with v1.x.x**
|
||||
# Motivations
|
||||
|
||||
Keycloak provides [theme support](https://www.keycloak.org/docs/latest/server_development/#_themes) for web pages. This allows customizing the look and feel of end-user facing pages so they can be integrated with your applications.
|
||||
|
@ -1,43 +0,0 @@
|
||||
|
||||
|
||||
|
||||
import { KcContextBase } from "./KcContextBase";
|
||||
import type { AndByDiscriminatingKey } from "../tools/AndByDiscriminatingKey";
|
||||
|
||||
|
||||
export type ExtendsKcContextBase<KcContextExtended extends { pageId: string; }>=
|
||||
AndByDiscriminatingKey<
|
||||
"pageId",
|
||||
KcContextExtended & KcContextBase.Common,
|
||||
KcContextBase
|
||||
>;
|
||||
|
||||
type KcContextExtended =
|
||||
{ pageId: "register.ftl"; authorizedMailDomains: string[]; } |
|
||||
{ pageId: "my-extra-page-1.ftl"; } |
|
||||
{ pageId: "my-extra-page-2.ftl"; someCustomValue: string; };
|
||||
|
||||
const y: ExtendsKcContextBase<KcContextExtended> = null as any;
|
||||
|
||||
|
||||
if (y.pageId === "register.ftl") {
|
||||
|
||||
y.authorizedMailDomains;
|
||||
|
||||
y.realm.displayName;
|
||||
|
||||
y.register
|
||||
|
||||
}
|
||||
|
||||
if (y.pageId === "my-extra-page-1.ftl") {
|
||||
y.realm.displayName;
|
||||
}
|
||||
|
||||
if (y.pageId === "my-extra-page-2.ftl") {
|
||||
|
||||
y.realm
|
||||
y.someCustomValue
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user