Hoppa till huvudinnehållet

Where can I get a portal session token - web viewer

Kommentarer

2 kommentarer

  • Zack Robison

    Sorry to resurrect an old thread... I just came across this while looking for how to access a secured GP Service "Upload" resource last week.

    To get a current Portal token in the client (i.e. without calling a Server workflow), I use a Get Portal User activity and access the .user.portal.credential.token output subproperty.  And in case anyone stumbles in here wondering, I called that /upload REST task using a Web Request activity with a header

    'X-Esri-Authorization': 'Bearer ' + $getUser.user.portal.credential.token
    0

Du måste logga in om du vill lämna en kommentar.