Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Situation: BioViz Connect settings.ini has a variable IS_DEV_ENVIRONMENT that can be set to true/false for development/production. If set to true and a valid CyVerse username and password are also included in settings.ini, then loadlogin method within views.py is supposed to use the username and password to obtain an access token without using the normal CAS login. However, instead of using the value of IS_DEV_ENVIRONMENT loadlogin is hardcoded with False. This is due to a bug where if it is set to True the access token appears to be obtained, but then the user is redirected to the connect.bioviz CAS login page instead of their dev server. This may have to do with some logic changes we made to logging out the user and redirecting them to connect.bioviz.org whenever an issue is encountered - such as an expired access token.

      Task: Investigate and fix the issue so that loadlogin uses the IS_DEV_ENVIRONMENT variable properly.

        Attachments

          Issue Links

            Activity

            nfreese Nowlan Freese created issue -
            nfreese Nowlan Freese made changes -
            Field Original Value New Value
            Epic Link IGBF-2376 [ 18533 ]
            nfreese Nowlan Freese made changes -
            Link This issue relates to IGBF-2521 [ IGBF-2521 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            Hide
            chaitanya Chaitanya Kintali (Inactive) added a comment -

            Pull Request Link:
            https://bitbucket.org/nfreese/django-cyversedev/pull-requests/195/igbf-2549/diff

            Moving the ticket to Needs testing.

            Show
            chaitanya Chaitanya Kintali (Inactive) added a comment - Pull Request Link: https://bitbucket.org/nfreese/django-cyversedev/pull-requests/195/igbf-2549/diff Moving the ticket to Needs testing.
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status First Level Review in Progress [ 10301 ] Needs 1st Level Review [ 10005 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status First Level Review in Progress [ 10301 ] Needs 1st Level Review [ 10005 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            chaitanya Chaitanya Kintali (Inactive) made changes -
            Assignee Chaitanya Kintali [ chaitanya ] Nowlan Freese [ nfreese ]
            nfreese Nowlan Freese made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            ann.loraine Ann Loraine made changes -
            Sprint Fall 2: 28 Sep - 9 Oct [ 104 ] Fall 2: 28 Sep - 9 Oct, Fall 3: Oct 12 - Oct 23 [ 104, 106 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            nfreese Nowlan Freese made changes -
            Status Post-merge Testing In Progress [ 10003 ] Merged Needs Testing [ 10002 ]
            nfreese Nowlan Freese made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            Hide
            nfreese Nowlan Freese added a comment -

            Tested using personal AWS account using BioViz Connect ansible playbook. When IS_DEV_ENVIRONMENT in the settings.ini is set to True the user is automatically logged in using the USERNAME and PASSWORD variables in the settings.ini. When IS_DEV_ENVIRONMENT is set to False the normal CyVerse oauth login occurs. I tried this on an ec2 with an elastic ip set to nowlantest.bioviz.org and on an ec2 not associated with a domain name. Both worked when IS_DEV_ENVIRONMENT was set to True. This is useful for future developers as the normal CyVerse oauth login requires a domain name that ends with bioviz.org.

            Closing issue.

            Show
            nfreese Nowlan Freese added a comment - Tested using personal AWS account using BioViz Connect ansible playbook. When IS_DEV_ENVIRONMENT in the settings.ini is set to True the user is automatically logged in using the USERNAME and PASSWORD variables in the settings.ini. When IS_DEV_ENVIRONMENT is set to False the normal CyVerse oauth login occurs. I tried this on an ec2 with an elastic ip set to nowlantest.bioviz.org and on an ec2 not associated with a domain name. Both worked when IS_DEV_ENVIRONMENT was set to True. This is useful for future developers as the normal CyVerse oauth login requires a domain name that ends with bioviz.org. Closing issue.
            nfreese Nowlan Freese made changes -
            Assignee Nowlan Freese [ nfreese ] Chaitanya Kintali [ chaitanya ]
            nfreese Nowlan Freese made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

              People

              • Assignee:
                chaitanya Chaitanya Kintali (Inactive)
                Reporter:
                nfreese Nowlan Freese
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: