In place of playing with req.userinfo on the pathways, you will need to revise to using req.affiliate . The primary reason for this is the users commonly a hundred% in the connect. When designing change to help you a good user’s profile, the newest Okta Node SDK therefore the OIDC Middleware use elizabeth, such, it won’t be reflected inside the req.userinfo unless you log aside and back in. Although not, req.associate would-be up-to-date instantaneously.
Some of the syntax is a bit more regarding the brand new version of an individual reputation (e.grams. as opposed to provided_title and you may family unit members_title the newest variation spends firstName and you will lastName ). You’ll want to alter several things discover them to make truthfully.
Change the Dash path to utilize the new Reputation. There’s no lengthened an upgraded_from the key, so you’re able to describe which by getting rid of the www.besthookupwebsites.org/omgchat-review/ fresh Big date object converter. You may want to need to filter out empty reputation study. Fundamentally, your dash route should now look more like this:
Customize the Report for the Okta
Today if you go to the dashboard you will notice a number of more facts. not, whenever a person brings their membership they’re simply required a beneficial first-name, history name, and you will email address, thus that’s all you can easily most find right here. not, Okta provides a number of most other properties from the box, plus you may make your own custom possibilities.
On your Okta dashboard, browse to Users > Reputation Editor. The initial one out of record would say member as well as have the fresh new Okta image next to it. Click the option for the reason that line branded having a revise symbol and term Profile.
You are today delivered to a web page that shows your a lengthy list of default attributes. You can’t change this type of, you could change a few options to into the her or him. Eg, you might limit this new login name to help you a particular band of letters, or you can make sure features see-just.
You could carry out custom characteristics by the simply clicking the latest Create Characteristic key. For the moment, is carrying out personalized string attributes of birthdate and you can favoriteColor .
You now have everything required establish to store member profile advice contained in this Okta. You simply need a way for profiles so you’re able to edit its guidance. This can be done by creating an alternative route and discover on your application.
Handlebars lets you circle due to an array of issues, therefore we will cut down on particular setting repetition by using one of them loops instead of backup-pasting a bunch of boilerplate for every items. Effortlessly, we are able to simply build a single setting goods as well as have they work with for each and every characteristic.
It will probably guess for each goods keeps a name , it uses for title and you may id
In the context of the latest cycle this refers to the product being looped thanks to, so in this situation for each item of the sphere selection, that you’ll need solution for the through the station. If there is a different sort of sort of , it’s going to play with that, otherwise the fresh new web browser have a tendency to suppose the fresh default value of text message . Right here, you would like birthdate to be a night out together, to utilize the datepicker made in in order to modern browsers (whether your internet browser will not support it, it is possible to just rating a book field, that’s good enough for this demonstration). You can even tell this new web browser this 1 fields are expected (e.g. first and last label).
Contacting router.play with informs the new router to utilize that setting for everyone demands. You need to promote the webpage for Article while having needs, so this lets you generate the function shortly after and use it both for brands of the web page.