Rather than having fun with req.userinfo in your paths, you should up-date to using req.associate . The key reason for this ‘s the users aren’t 100% inside the sync. When making transform so you can an excellent owner’s profile, new Okta Node SDK as well as the OIDC Middleware fool around with e, eg, it won’t be reflected from inside the req.userinfo if you don’t record out and you may into. Although not, req.representative might be up-to-date immediately.
A number of the sentence structure is a little other on the variety of an individual profile (e.g. in place of considering_identity and you will relatives_identity the new variation spends firstName and you may lastName ). You will have to change several things to get them to line up correctly.
Replace the Dashboard approach to utilize the the brand new Character. There’s no expanded an updated_at secret, in order to simplify it by getting rid of this new Big date object converter. You are able to have to filter out empty character investigation. Eventually, their dashboard station would be to today look more in this way:
Customize the Account into the Okta
Now if you look at the dashboard you will see a few some other activities. Yet not, whenever a user produces their membership they might be merely asked for a great first name, last term, and you will email, thus that’s all you’ll be able to extremely look for right here. Although not, Okta provides a bunch of other services outside of the container, along with you can create the customized choice.
On your own Okta dashboard, navigate so you can Users > Profile Publisher. The initial one out of record will say associate and get the fresh Okta logo close to they. Click the option in that line branded that have a revise icon together with word Reputation.
You might be today delivered to a full page that shows your an extended set of default attributes. You can not change this type of, but you can change a few options around towards the some of them. For example, you might restrict the latest login name to help you a certain band of emails, or you can ensure that characteristics see-simply.
It’s also possible to carry out customized properties because of the hitting new Create Attribute button. For now, is performing personalized string top features of birthdate and you will favoriteColor .
You now have everything required set up to save representative character pointers inside Okta. You simply need a means for profiles to help you edit their pointers. This can be done through a different sort of route and watch on your own application.
Handle bars allows you to cycle courtesy many points, therefore we can cut upon particular means repetition by using one among them loops unlike backup-pasting a number of boilerplate for each and every item. Effectively, we can only establish an individual means items as well as have they work for each trait.
It is going to suppose each goods enjoys a reputation , which it ways to use title and you can id
Relating to the newest cycle which is the item getting looped as a consequence of, so in such a case for every product of your sphere number, which you’ll must pass in the through the station. When there is an alternative form of , it is going to explore that, if not brand new internet browser have a tendency to assume the fresh default value of text . Here, need birthdate as a night out together, in order to make use of the datepicker made in to progressive internet browsers (whether your web browser does not back it up, you are able to just rating a text career, that is suitable for this trial). You may want to tell the latest web browser that certain fields are essential (age.grams. first and last identity).
Calling router.explore tells the brand new router to use you to form for everyone desires. You’ll want to render brand new web page for Post and possess desires, and this lets you develop the event immediately after and employ it for both brands of page.