Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-3096 PGA and Django Portal Users and user group related issues
  3. AIRAVATA-3249

BUG: For a user who created account Using gmail through login, shows 'Activate user' in Manage Users

Details

    Description

      1. A new user clicks CILogon from PGA portal and selects google and enters gmail account details.
      2. For the gateway admin, in Django portal shows, the new account as an account that didn't verify the email yet.
      3. For users who come through CILogon this should not be the case.
      4. They do not need to verify the email.
      5. Also the gateway admin did not get any mail notification on the new account creation.

      Attachments

        Activity

          So I think I see the issue.

          • user logs in through CILogon in PGA
          • account is created in Keycloak, but user has no access
          • PGA doesn't create a user profile for the user since the user has no access
            • this is different from Django. On a user's first login (coming through CILogon) a user profile is initialized.
          • in Django admin cannot just add the user to groups since the user has no user profile

          This can be fixed by calling initializeUserProfile() whenever a user logs in, regardless of whether they have group based access.

          marcuschristie Marcus Christie added a comment - So I think I see the issue. user logs in through CILogon in PGA account is created in Keycloak, but user has no access PGA doesn't create a user profile for the user since the user has no access this is different from Django. On a user's first login (coming through CILogon) a user profile is initialized. in Django admin cannot just add the user to groups since the user has no user profile This can be fixed by calling initializeUserProfile() whenever a user logs in, regardless of whether they have group based access.

          Commit 8e432abfd3dc0e10052efd40045bc63766b7b5aa in airavata-php-gateway's branch refs/heads/staging from Marcus Christie
          [ https://gitbox.apache.org/repos/asf?p=airavata-php-gateway.git;h=8e432ab ]

          AIRAVATA-3249 Always initialize user profile on login

          jira-bot ASF subversion and git services added a comment - Commit 8e432abfd3dc0e10052efd40045bc63766b7b5aa in airavata-php-gateway's branch refs/heads/staging from Marcus Christie [ https://gitbox.apache.org/repos/asf?p=airavata-php-gateway.git;h=8e432ab ] AIRAVATA-3249 Always initialize user profile on login

          Commit 8e432abfd3dc0e10052efd40045bc63766b7b5aa in airavata-php-gateway's branch refs/heads/master from Marcus Christie
          [ https://gitbox.apache.org/repos/asf?p=airavata-php-gateway.git;h=8e432ab ]

          AIRAVATA-3249 Always initialize user profile on login

          jira-bot ASF subversion and git services added a comment - Commit 8e432abfd3dc0e10052efd40045bc63766b7b5aa in airavata-php-gateway's branch refs/heads/master from Marcus Christie [ https://gitbox.apache.org/repos/asf?p=airavata-php-gateway.git;h=8e432ab ] AIRAVATA-3249 Always initialize user profile on login

          Commit 8e432abfd3dc0e10052efd40045bc63766b7b5aa in airavata-php-gateway's branch refs/heads/dreg-gateway from Marcus Christie
          [ https://gitbox.apache.org/repos/asf?p=airavata-php-gateway.git;h=8e432ab ]

          AIRAVATA-3249 Always initialize user profile on login

          jira-bot ASF subversion and git services added a comment - Commit 8e432abfd3dc0e10052efd40045bc63766b7b5aa in airavata-php-gateway's branch refs/heads/dreg-gateway from Marcus Christie [ https://gitbox.apache.org/repos/asf?p=airavata-php-gateway.git;h=8e432ab ] AIRAVATA-3249 Always initialize user profile on login

          Commit 8e432abfd3dc0e10052efd40045bc63766b7b5aa in airavata-php-gateway's branch refs/heads/tus-integration from Marcus Christie
          [ https://gitbox.apache.org/repos/asf?p=airavata-php-gateway.git;h=8e432ab ]

          AIRAVATA-3249 Always initialize user profile on login

          jira-bot ASF subversion and git services added a comment - Commit 8e432abfd3dc0e10052efd40045bc63766b7b5aa in airavata-php-gateway's branch refs/heads/tus-integration from Marcus Christie [ https://gitbox.apache.org/repos/asf?p=airavata-php-gateway.git;h=8e432ab ] AIRAVATA-3249 Always initialize user profile on login

          People

            marcuschristie Marcus Christie
            eroma_a Eroma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: