Perform a user Profile Webpage inside Node

Perform a user Profile Webpage inside Node

In the place of having fun with req.userinfo in your pathways, you ought to revision to having req.member . The key reason for this is the profiles aren’t one hundred% inside the sync. When making transform to a good customer’s character, brand new Okta Node SDK and OIDC Middleware have fun with age, like, it will not be shown within the req.userinfo until you journal out and you will into. not, req.user will be upgraded instantaneously.

Some of the sentence structure is a bit various other in the this new style of the consumer reputation (e.g. in lieu of offered_identity and you may friends_label brand new adaptation uses firstName and you will lastName ). You will have to changes some things locate them to line-up accurately.

Alter the Dashboard path to utilize the new Character. There’s no lengthened an up-to-date_from the key, to help you make clear so it by getting rid of brand new Big date target converter. You are able to want to filter out blank profile data. Ultimately, your own dash route should today look along these lines:

Modify the Report when you look at the Okta

Today for individuals who visit the dash you will see several other issues. However, whenever a user brings their account they have been just wanted a beneficial first name, past title, and you will email, very that’s it you can easily most pick right here. Although not, Okta brings a bunch of almost every other services out of the container no strings attached mobile site, including you can create the individualized options.

In your Okta dashboard, navigate in order to Users > Reputation Publisher. The initial one out of the list would say user and now have brand new Okta sign close to it. Click on the switch because row labeled which have an edit icon in addition to word Profile.

You will be now brought to a webpage that presents you a lengthy listing of standard qualities. You simply can’t change such, but you can changes a few options around for the the him or her. Like, you might limitation brand new username so you can a particular gang of emails, you can also make certain that qualities understand-only.

You are able to manage personalized qualities of the simply clicking the newest Create Trait option. For the moment, are performing individualized sequence options that come with birthdate and you may favoriteColor .

You now have everything you need arranged to store affiliate profile advice in this Okta. All you need is a means for pages to help you revise its pointers. This can be done by making an alternative channel and find out on the app.

Handlebars allows you to loop as a result of a variety of issue, therefore we will cut down on certain setting repetition that with one loops in place of copy-pasting a lot of boilerplate each goods. Effortlessly, we could only make one means items and get it work for for each attribute.

It’s going to suppose for every single items provides a reputation , which it ways to use the name and you can id

In the context of the newest circle this is the item are looped as a result of, therefore in cases like this for each and every goods of one’s fields array, which you’ll need ticket inside via the station. If you have a special kind of , it’s going to fool around with one to, otherwise the fresh new browser usually guess the newest standard value of text . Right here, you need birthdate to be a night out together, to help you utilize the datepicker manufactured in to help you modern internet browsers (if for example the internet browser doesn’t support it, you can just score a text community, which is sufficient for this demonstration). It is possible to give the new internet browser that one fields are expected (elizabeth.g. basic and history term).

Contacting router.use says to brand new router to utilize you to function for all needs. You will need to render the page for Post and now have needs, which means this lets you create the event once and employ it for brands of the web page.