GithubHelp home page GithubHelp logo

Comments (6)

danizen avatar danizen commented on June 7, 2024

@duke2012, I recommend you use something like Chrome Devtools Network tab to trace what is happening. My theory would be that the other frame is not reloaded. It would also be helpful to know what browser this is, and if it is a site that anyone can play with.

from django-cas-ng.

wangyouyan avatar wangyouyan commented on June 7, 2024

Exception Location: /usr/lib/python2.7/site-packages/django_cas_ng/utils.py in get_service_url, line 45

from django-cas-ng.

danizen avatar danizen commented on June 7, 2024

@wangyouyan, can you provide more data on how this is reproduced? What is the sequence of web requests before the exception is thrown? I will test get_service_url() with some complicated URLs and see when, if ever, it throws.

from django-cas-ng.

wangyouyan avatar wangyouyan commented on June 7, 2024

@danizen I'm sorry for that,It might be relate to my env.It might encounter this issue when the django's version is 1.10.By the way,I met another issue,When I access url "http://www.example.com/accounts/login",the brower return 404([22/Mar/2017 12:49:32]"GET / HTTP/1.1" 404 2332).
But "http://www.example.com/accounts/logout" & "http://www.example.com/accounts/callback", are normal.That's weird.

from django-cas-ng.

danizen avatar danizen commented on June 7, 2024

@wangyouyan, what CAS settings do you have in your settings file?

For example, my base settings file has:

CAS_CREATE_USER = False

CAS_SERVER_URL = 'https://login-prod.nlm.nih.gov/cas/'

I can test CAS manually by manually entering the following URL in my browser:

https://login-prod.nlm.nih.gov/cas/login?service=https%3a%2f%2fnlmcatutil.nlm.nih.gov%2faccounts%2flogin

I get the service parameter by going to https://urlencode.org/ and entering the URL. This way I skip the process of CAS redirecting to this site and simply take it from that point.

I can get something like the same thing using the Network tab of Chrome Developer Tools, but it isn't always easy.

from django-cas-ng.

mingchen avatar mingchen commented on June 7, 2024

close due to inactive.

from django-cas-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.