• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Intergration with existing SSO

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am having an existing web application that already has SSO implemented. With the current implementation, the user ID (or his token) is available on session object when redirect from the portal site to Jforum. What I wanted is to have a mechanism to automatically register that user ID to the system and allow him to update password and personal information straightaway. The steps are
1. Get user ID, email address from the session object (or retrieve it from LDAP server using user ID)
2. Check if user is exist in Jforum DB. If it's exist, then login the user automatically otherwise, an update user information page should be displayed, the user name, email should be filled automatically (user can change them to other value ofcourse)
3. As soon as they complete the page, they are login automatically when redirect from the portal page.

Could you please tell me if this is possible? In case it's possible, where should I started looking in the code to make necessary change?
Thanks,
Ly
[originally posted on jforum.net by gaucha]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, that's possible.

Take a look in the existing SSO implementations and in the class DefaultLoginAuthenticator.java.

Also, check the documentation at http://www.jforum.net/confluence/display/integration/Overview

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you tell me what this code mean please?

import com.xxxx.myapp.database.*; // jar up any classes you need to access your user data and
import com.xxxx.myapp.security.*; // place in JForums WEB-INF/lib.

for example,I user jdbc to link mysql database.and i can't find the package com.mysql.jdbc.database

i don't know if i an error understand,can you tell me ?

[originally posted on jforum.net by hero_qx]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
com.mysql.* is available in the mysql-connectorj-xxxx.jar (or whatever is the jar you downloaded from mysql.com)

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am sorry,but I down a new jar from mysql.com as you say--I can't find it still.
can you see the picture i upload?

I am happy if you can tell me how to write this two code

import com.xxxx.myapp.database.*; // jar up any classes you need to access your user data and
import com.xxxx.myapp.security.*; // place in JForums WEB-INF/lib.


and why the error picture's error happen?
[originally posted on jforum.net by hero_qx]
 
I think she's lovely. It's this tiny ad that called her crazy:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic