Zum Hauptinhalt gehen

Signing in Geocortex Viewer Programatically

Kommentare

4 Kommentare

  • Permanently deleted user
    Hi Denis,

     

    Were you able to resolve the issue?

     

    I was also trying to sign in programatcally into the Geocortex services directory by passing the credentials via http basic authentication header and was getting a 403 error. Would welcome any help.

     

    Thanks,

     

    Soham.
    0
  • Permanently deleted user
    Hi Guys,

     

    This topic is a bit more involved than I can probably manage in a forum post, but here goes:

     

    Geocortex Essentials uses a Claims-Based system for authentication.  Regardless of the enabled method of authentication, the following things happen:
    1. The user attempts to sign in
    2. Their browser is redirected to a page/endpoint for the Identity Provider
    3. That provider issues an authorization token (however it sees fit) and assigns claims to the user
    4. The user's claims are stored in the Geocortex Security Store
    The claims that get assigned are associated with an issuer.  Signing in externally may assign a different issuer (if a different identity provider actually issued those claims).  

     

    You may be able to configure Essentials to accept an alternate redirect URI, and then use the same sign-in process that the viewer uses to authenticate and store the claims in the security store.  Then, you would be able to launch a viewer with the user already signed in.  Unfortunately, I don't know the specific steps on how you might do this, nor am I confident it would actually work.  I'm speculating based on how I understand our security works.

     

    You cannot programmatically sign in a user with Basic authentication, unless you're using Integrated Windows security and Basic authentication is the only available protocol.  We do not recommend using this, ever, since Basic authentication is inherently insecure. To maintain security we recommend using an SSL-secured transport (HTTPS) and Kerberos authentication if your'e also using Integrated Windows.

     

    The __RequestValidationToken parameter is generated by ASP.Net and is an anti-forgery measure.  It is automatically generated by the server to ensure that the form was posted from the same server, hence why it cannot be generated.

     

    Regards,

     

    -Malcolm
    0
  • Sean McClurkan
    So if my site is using Windows Authentication, and is an internal user applicaiton inside my firewall, is there an approved method for having a viewer automatically sign in a user based on their current Windows Active Directory credentials when launched?
    0
  • Permanently deleted user
    Hi Sean,

     

    When using Windows authentication you should already have automatic sign-in if Windows Authentication is the only available provider for your users.  If there are multiple providers then they will be given a choice.

     

    We have a (https://support.geocortex.com/essentialsGSCkba?id=kA360000000CiWT) knowledge base article  outlining the various additional configuration you can do to ensure a smooth experience.

     

    Regards,

     

    -Malcolm
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.