Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1050217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:44:14+00:00 2026-05-16T16:44:14+00:00

I have existing Java application that is using Acegi for authentication/authorization. Our new web

  • 0

I have existing Java application that is using Acegi for authentication/authorization. Our new web interface would be preferably written in Django. I would like Django to maintain users – registration etc. Django would either share or update Acegi authentication data so the older application still works and users don’t have to use two sets of credentials (maybe even share authentication cookie). I was wondering if someone was already dealing with similar issue and if yes which approach was chosen.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:44:15+00:00Added an answer on May 16, 2026 at 4:44 pm

    Just remember whatever you do with Django, it is still Python, therefore just because Django doesn’t have it/doesn’t do it that way, doesn’t mean you can’t. Also, from another point of view, there is nothing stopping you using bits of the Django framework from outside the traditional Django application.

    I don’t particularly like the admin interface to Django although I do use Form and ModelForm a lot outside of it. I actually implemented my own authentication system – all you need are functions that let you log in/out etc and an interface to that data. It (users/groups etc) doesn’t have to be represented as a Django model although that’s what I did for ease. There is nothing stopping you hooking in another ORM or writing your own for acegi. Alternatively, if writing your own layer is simple enough, do that.

    I’d recommend hooking into the context processors for Django and the Django middleware and library-ising your work simply because it’ll make re-use a breeze and it will act in a similar manner to the existing authentication framework. Here’s an example context processor I use to allow me to write {{ username }} in my template without having to get it out of every request object in every view method:

    def Authentication(request):
        if AuthenticationCheck(sess=request.session, timeofaction=datetime.datetime.now(), ipaddress=request.META['REMOTE_ADDR']) == True:
            return dict(username=request.session["username"])
        else:
            return dict(username='')
    

    Also, Django Middleware Documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java application that I need to integrate our existing PHP website
I have an existing java/scala application using a global thread pool. I would like
I have an existing Java web application running on Linux using embedded Jetty. The
I'm currently rebuilding an existing PHP application using Java. I therefore have an existing
I have an existing and working java web application. I want to make this
I have existing java code and need to create Design Document based on that.
I have an existing system built in Java we currently expand that by adding
I have an existing database that I am now connecting to using hibernate. I
I have an existing large(ish) PHP web app (using Apache and MySQL) which now
I would like to have an application/script that I could use to execute a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.