Create a person Profile Web page for the Node

In lieu of using req.userinfo on your own paths, you need to inform to using req.affiliate . The primary reason because of it is the pages aren’t one hundred% inside the sync. When making transform in order to an effective user’s reputation, the brand new Okta Node SDK together with OIDC Middleware have fun with elizabeth, including, it won’t be mirrored inside req.userinfo if you don’t diary out and you can into. But not, req.associate could well be current quickly.

A number of the sentence structure is a bit different throughout the the brand new form of the user profile (e.grams. in the place of considering_identity and you will family unit members_identity new type uses firstName and lastName ). You’ll want to changes several things to locate them to fall into line precisely.

Alter the Dashboard approach to use the the brand new Profile. There’s absolutely no stretched a current_from the key, so you can clear up that it through getting gone new Day target converter. You can must filter blank profile studies. Fundamentally, their dash route is now look more in this way:

Customize the Report into the Okta

Now for many who check out the dashboard you’ll see a number of more factors. However, whenever a user brings its membership they might be only wanted an effective first-name, history title, and you will email address, therefore that’s it possible really look for right here. However, Okta brings a lot of almost every other features from the box, plus you possibly can make their personalized selection.

On the Okta dashboard, navigate to help you Profiles > Profile Editor. The original one in the list would state associate and then have new Okta symbol alongside it. Click the key for the reason that row branded having a modify icon and the word Profile.

You will be now delivered to a typical page that displays your a long listing of default properties. You simply cannot edit this type of, you could transform a few options around to the a number of him or her. For example, you could potentially limit the fresh new login name so you’re able to a specific band of letters, you can also make sure that functions see-merely.

You could do custom properties of the simply clicking new Incorporate Attribute option. For the moment, are carrying out individualized sequence popular features of birthdate and favoriteColor .

You now have everything you need developed to save member reputation advice in this Okta. You simply need a way for users so you can change their recommendations. You can do this through a different sort of route to check out on your own app.

Handle bars enables you to loop owing to many aspects, so we can cut down on specific form repetition by using one of these loops as opposed to copy-pasting a number of boilerplate for every items. Effortlessly, we could merely build a single means goods and have it work with for each characteristic.

It’ll imagine for every items has actually a name , it ways to use title and you may id

Relating to brand new cycle which refers to the goods being looped using, so in such a case for every items of your own areas number, which you’ll need to admission from inside the through the station. If there’s a different sort of type , it’s going to explore one to, or even the brand new browser usually imagine the new default value of text message . Right here, you need birthdate is a romantic date, in order to utilize the datepicker produced in to modern browsers (if the web browser does not back it up, you can easily only rating a text field, which is sufficient for this demo). You’ll be able to share with new web browser that one fields are essential (age.grams. earliest and you can last title).

Calling router.use says to the new router to make use of you to setting for everyone needs. You will need to render new page for Post and also requests, so this lets you produce the event after and employ it both for versions of your page.