Comments (6)
@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.
Exception Location: /usr/lib/python2.7/site-packages/django_cas_ng/utils.py in get_service_url, line 45
from django-cas-ng.
@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.
@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.
@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.
close due to inactive.
from django-cas-ng.
Related Issues (20)
- djangocas.dev website links to old changelog HOT 1
- CAS_CHECK_NEXT no longer supports callable? HOT 1
- DataError at /accounts/login/ value too long for type character varying(255)
- Exception Value: mismatched tag: line 50, column 75
- Invalid next URLs in login causes a server error HOT 2
- Not an issue , but a doubt , so the user attributes from django mama cas are contained in the st ticket and they get loaded into user table ? HOT 1
- Failed when `python manage.py migrate` HOT 3
- Django >= 3.2.7 requires new migration script HOT 2
- Single Logout ignores `CAS_ROOT_PROXIED_AS` setting
- Please make a release HOT 2
- ParseError: not well-formed (invalid token): line 1, column 854 HOT 1
- Can't request XML content using by requests HOT 1
- CAS Affiliation support HOT 2
- django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 3072 bytes') HOT 5
- Redirect url error when passing absolute rute to next param on logout view
- CAS_APPLY_ATTRIBUTES_TO_USER does not appear to add any attributes to user HOT 2
- doc: `CAS_ADMIN_REDIRECT` is not documented HOT 1
- Live Demo on https://djangocas.dev is not working
- Documentation changelog not updated
- [solved][nobug] CAS_USERNAME_ATTRIBUTE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-cas-ng.