Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/common/djangoapps/external_auth/views.py   MHST2013-14(Download)
        log.debug('Created eamap=%s', eamap)
 
        eamap.save()
 
    log.info(u"External_Auth login_or_signup for %s : %s : %s : %s", external_domain, external_id, email, fullname)
                    # if there's no pre-existing linked eamap, we link the user
                    eamap.user = link_user
                    eamap.save()
                    internal_user = link_user
                    log.info('SHIB: Linking existing account for %s', eamap.external_email)

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/lms_migration/management/commands/create_user.py   MHST2013-14(Download)
            eamap.user = user
            eamap.dtsignup = datetime.datetime.now(UTC)
            eamap.save()
 
        print "User %s created successfully!" % user

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/common/djangoapps/external_auth/tests/test_shib.py   MHST2013-14(Download)
        user_w_map.save()
        user_wo_map.save()
        extauth.save()
 
        inactive_user = UserFactory.create(email='inactive@stanford.edu')
                                           user=inactive_user)
        inactive_user.save()
        inactive_extauth.save()
 
        idps = ['https://idp.stanford.edu/', 'https://someother.idp.com/']
                                  external_credentials="",
                                  user=shib_student)
        extauth.save()
 
        other_ext_student = UserFactory.create()
                                  external_credentials="",
                                  user=other_ext_student)
        extauth.save()
 
        int_student = UserFactory.create()
        student.set_password("password")
        student.save()
        extauth.save()
 
        course = CourseFactory.create(org='Stanford', number='123', display_name='Shib Only')