Unlike having fun with req.userinfo on your routes, you ought to revise to using req.user . The key reason for this is the users aren’t a hundred% into the connect. When creating alter so you’re able to an effective owner’s character, the brand new Okta Node SDK while the OIDC Middleware play with age, such, it will not be shown in the req.userinfo until you diary aside and you may into. not, req.associate could be updated instantaneously.
Some of the sentence structure is a bit some other on the brand new sorts of an individual reputation (age.grams. unlike provided_identity and family relations_term this new type uses firstName and you will lastName ). You will have to alter a couple of things to track down them to fall into line truthfully.
Change the Dash approach to make use of the the fresh Character. There isn’t any offered an up-to-date_within trick, so you’re able to clarify so it by getting gone the fresh new Date object converter. You could need certainly to filter empty character data. Finally, your own dashboard channel will be now look similar to this:
Modify the Report within the Okta
Now for those who visit the dashboard you will notice a few various other products. However, whenever a person brings their account they’re only requested an excellent first-name, last term, and you can current email address, so that’s it you can most select here. Although not, Okta brings a bunch of most other properties out from the container, also you may make their custom choices.
On the Okta dash, navigate to help you Users > Profile Editor. The original one out of the list would say member and also have new Okta symbol alongside they. Click on the switch in that line branded which have a modify symbol additionally the term Reputation.
You may be today brought to a web page that presents you an extended set of standard attributes. You can not modify these, you could changes several options up to on a number of him or her. Like, you might maximum the new username so you’re able to a particular gang of characters, you can also make certain qualities understand-just.
It is possible to carry out individualized qualities by the simply clicking the fresh Put Characteristic switch. For the moment, was undertaking custom string options that come with birthdate and you will favoriteColor .
You’ve got everything required setup to save member profile pointers in this Okta. All you need is a means for users in order to revise the recommendations. You can do this by making another channel to check out in your software.
Handlebars lets you cycle by way of many points, therefore we can cut upon particular mode repetition that with one of them loops as opposed to content-pasting a lot of boilerplate for each and every items. Effectively, we could only generate an individual mode items while having they benefit for each and every characteristic.
It’ll imagine for each items keeps a reputation , which it uses for the name and you will id
Relating to brand new cycle it is the goods getting looped through, therefore in such a case for every single item of your sphere selection, which you’ll have to violation in the through the station. If there’s an alternate particular , it will have fun with you to definitely, if not the newest browser have a tendency to guess the fresh new default value of text . Right here, you need birthdate getting a night out together, so you’re able to use the datepicker made in in order to progressive internet explorer (if for example the web browser does not back it up, it is possible to merely score a text career, which is good enough for it demo). It is possible to share with the latest web browser that certain fields are essential (age.grams. first and history identity).
Contacting router.fool around with says to the router to make use of you to definitely form for everyone demands. You ought to give brand new web page for both Article and have needs, which means this lets you develop the event immediately following and use it for designs of web page.