Keycloak: Add common attributes to user account information - keycloak

In Keycloak, I see a lot of built-ins like phone. How do I add them(e.g. phone) to my account profile page as shown below(e.g. below Last name)?

You have to create custom account theme and override account.ftl template.
Read through Theme creation and Custom User Attributes documentation pages.

Related

Individual Account Verify and Flatform section in App Review

I have 2 question in app review process. Can you give my some advice?
I want to create a single App within Facebook that is solely for my own use and not intended to be sold or shared with anyone. This application will be used to manage and post content on my pages (https://www.facebook.com/ntdepcom - I sell interior-exterior products) or groups (of which I am the admin).
In Setting Basic Section, I already verified Individual Account; do I need to verify Business Account as well?
When it comes to the verification process, in the 'Add Platform' section I chose the 'Website' option.
I assume that I should fill this cell with a URL that the reviewer will use to access my app; is this correct?
Since this app is only for my own use, I don't need to create a 'beautiful user interface'. Would it be possible for me to create a simple interface with Google Spreadsheet for the Facebook review? (Front-end: Google Spreadsheet, back-end: Google App Script).
I developed a rudimentary application of my own, and I am in the process of constructing its user interface. I need more information about it, because I am not good at interface.
Thank you.

Wagtail Forms: How to make preset from field so editor can't change anything?

I'm trying to create a form which will always have the same form fields. I'm following the documentation but can't seem to find an answer.
The easiest way is through the Wagtail admin. First choose Lock from the popup menu at the bottom of the page you wish to lock. Then assign the user to a group for which you want to deny the ability to change the locked page. By default the Editors group does not allow changing the lock state of a page. If you can't use that group, then click Settings and then Groups and then choose the a different group that you have created for the user. Under the PAGE PERMISSIONS section add a new page permission and choose the page type that you want to deny the user the ability to change. Make sure Unlock is not chosen and save your page permission. If you set things up this way on your development machine, you'll just have to be sure to do the same thing in production.
I would in that case simple make a django model for it and not use wagtail forms. That way the user can't change it.

IdentityServer3 - Custom Login and Registration Screen

We are planning to integrate the identity server 3.
We have our own login page which has following:
Login section
Account Registration Section,
Is it possible to have a custom login page for identity-server authentication which will have above sections
Yes, it is possible, see the documentation on customizing views
The views in IdentityServer can be customized in one of two ways: 1)
Customize the HTML templates provided by the DefaultViewService, or if
more control is needed 2) define a custom IViewService

Is it possible to enforce initial configuration of a page app?

I'm attempting to develop my first Facebook app that is designed to allow clients of our website to sell tickets to their events from their Facebook page as well as from our website. So when the administrator of a Facebook page adds our app as a page tab, I need to be able to find out who they are so I can load the relevant event data. There also needs to be additional include/exclude configurations and various other options, which will affect the behaviour of the app.
So my question is how is this situation best handled? When playing around with a basic sandboxed app, I seem to be able to just add the app directly to a page; there is no prompt for configuration, and I can't see any way of defining custom properties.
Is the 'edit_url' property the only way to achieve this? If so, is there a way of automatically directing the page admin to this link upon initial use?
Decoding the signed request recieved in your page will give you more insight.
From this you can retrieve page admins' UID's.
You'll need to manage the rest on your side...
In order to get the user id the user will have to grant your application basic permissions.
I'm currently doing a somewhat similar app and, just like Lix said, I used the signed_request variable to detect the page where the tab is installed. Then, based on the page's ID, I retrieve the proper content.
To also give your users an admin page, add a Page Tab Edit URL in your app configuration where you can redirect your users to a custom panel where they can edit their app.

User-defined settings for Facebook page tab?

I am developing a Facebook iframe application that requires some configuration for each install, such as long/lat and some third-party API keys. I would rather not have to create a new app for each implementation.
Is there any way to allow the user (page owner) to define these settings? Ideally, I'd like to provide additional settings in the "Edit Settings" dialog on the apps admin page (currently the only setting is "Custom Tab Name").
Thanks!
It is possible, but there is no easy/standard way to do this. I would try the following:
Your backend would need to provide the storage for each tab's settings; these would associate a specific tab with a specific page.
In your application's tab iframe add a link that only shows if the user viewing the tab is the user who is associated with the tab. You can do this by looking for the page value in the signed_request and making sure that the user is an admin.
When the user clicks that link, pop up the dialog to let them feed in the custom settings and save that on the server after performing the relevant validation.
On subsequent loads of the tab, look up and use the saved settings appropriately on your server.
You'll need to do some handling for situations where the page settings haven't yet been created, but that SHOULD do what you want.