Forum Stats

  • 3,874,152 Users
  • 2,266,674 Discussions
  • 7,911,744 Comments

Discussions

JWT Bearer token authentication in OJET

Zsolt Holman
Zsolt Holman Member Posts: 23 Red Ribbon
edited May 17, 2021 4:37PM in Oracle JET

How to apply Bearer token authentication into the given model?

define(['ojs/ojcore', 

    'knockout', 

    'jquery', 

    'ojs/ojmodel',

...

],

 function(oj, ko, $, appUtils, signals) {  

  function TicketDeskViewModel() {

   var self = this;

   /* Variables */

   self.ticketListDataSource = ko.observable();

...

   /* List View Collection and Model */

   var ticketModelItem = oj.Model.extend({

    idAttribute: 'id'

   });

     

   var ticketListCollection = new oj.Collection(null, {

        url: "http://localhost:8080/tickets",

    model: ticketModelItem

   });

Best Answer

Answers