Hoppa till huvudinnehållet

ArcGIS Portal (OAuth2) Authentication from Workflow 5

Kommentarer

3 kommentarer

  • Permanently deleted user

    Jerry,

     

    Did you ever found an answer for this case. I would like to use Oauth2 with API's and can't find a way do it this.

     

    Erik

     

    0
  • Jerry Stafurik

    Hi Erik,

     

    I couldn't figure out how to integrate the workflow as a "Single Sign-on" with Portal.

     

    I ended up creating a custom activity, that on launch of a workflow redirects the user (by opening a new browser tab) to log in (through the custom API), which authenticates all other future requests against the API -- so, the users only authenticate twice once (one for GCX and one for the custom API), and then the authentication persists for a while. Once the authentication is successful, the tab closes and the workflow continues launching.

     

    Hope this helps.

     

    Jerry

    0
  • Jerry Stafurik

    Forgot to add, that the custom activity checks whether the user is already authenticated, so it doesn't direct the user to log in if the user is authenticated, and the workflow just launches normally.

    0

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