Forums / SmartComponent Library - Developer Forum / WebTransport versus APSV

WebTransport versus APSV

4 posts, 0 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    343 posts
    Registered:
    29 Jun 2018
    08 Apr
    Link to this post
    Is there a way to determine what transport is responsible for a CRUD operation?

    We have a need to determine if a customer record was created using the WEB transport.

    The use case is our customer's website will be making a REST call into our app for the purpose of creating/updating a customer record when they order product online. Our customer wants to take a specific action when a customer is created by the website.

    I was thinking just add a new field in the Customer table like CreatedBy or something similar and have the website set this field. 

    I was not sure if there was a more elegant way. 

    Thanks
  2. Mike Fechner
    Mike Fechner avatar
    263 posts
    Registered:
    14 Sep 2016
    08 Apr in reply to Roger Blanchard
    Link to this post
    I am sure, there are properties.in SESSION:CURRENT-REQUEST-INFO that tell you which class was close.by the client - a web handler or a procedure in the OERA/support folder.

    But I would rather solve this through authentication. 

    How are your website users authenticating?
  3. Roger Blanchard
    Roger Blanchard avatar
    343 posts
    Registered:
    29 Jun 2018
    08 Apr in reply to Mike Fechner
    Link to this post
    We are using OERealm to our users table.

    That may work...I will look into it

    Thanks.
  4. Mike Fechner
    Mike Fechner avatar
    263 posts
    Registered:
    14 Sep 2016
    08 Apr in reply to Roger Blanchard
    Link to this post
    You could try to use two different login domains. One for GUI and one for Web
4 posts, 0 answered