Compare commits

...

3 Commits

Author SHA1 Message Date
f5556a02fc Update changelog v1.1.5 2021-06-15 15:38:25 +00:00
1050f4d928 Bump version (changelog ignore) 2021-06-15 17:32:26 +02:00
9276b08f4b #11: Provide socials in the register 2021-06-15 17:32:03 +02:00
5 changed files with 72 additions and 2 deletions

View File

@ -1,3 +1,7 @@
### **1.1.5** (2021-06-15)
- #11: Provide socials in the register
### **1.1.4** (2021-06-15)
- Merge pull request #12 from InseeFrLab/email-typo

View File

@ -1,6 +1,6 @@
{
"name": "keycloakify",
"version": "1.1.4",
"version": "1.1.5",
"description": "Keycloak theme generator for Reacts app",
"repository": {
"type": "git",

View File

@ -185,5 +185,59 @@
return out;
})(),
"social": {
"displayInfo": (function (){
<#attempt>
return ${social.displayInfo?c};
<#recover>
</#attempt>
})(),
"providers": (()=>{
<#attempt>
<#if social.providers??>
var out= [];
<#attempt>
<#list social.providers as p>
out.push({
"loginUrl": (function (){
<#attempt>
return "${p.loginUrl?no_esc}";
<#recover>
</#attempt>
})(),
"alias": (function (){
<#attempt>
return "${p.alias}";
<#recover>
</#attempt>
})(),
"providerId": (function (){
<#attempt>
return "${p.providerId}";
<#recover>
</#attempt>
})(),
"displayName": (function (){
<#attempt>
return "${p.displayName}";
<#recover>
</#attempt>
})()
});
</#list>
<#recover>
</#attempt>
return out;
</#if>
<#recover>
</#attempt>
})()
}
}
</script>

View File

@ -130,6 +130,15 @@ export declare namespace KcContext {
* (https://github.com/micedre/keycloak-mail-whitelisting)
*/
authorizedMailDomains?: string[];
social: {
displayInfo: boolean;
providers?: {
loginUrl: string;
alias: string;
providerId: string;
displayName: string;
}[]
};
};
export type Info = Common & {

View File

@ -168,7 +168,10 @@ export const kcRegisterContext: KcContext.Register = {
"*.yet-another-example.com",
"*.example.com",
"hello-world.com"
]
],
"social": {
"displayInfo": true
},
};
export const kcInfoContext: KcContext.Info = {