• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Determine unique user by email .( 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
Hello,
I am trying to integrate jforum with an existing application . I have implemented my own custom sso . I am using version 2.1.8

By default jforum registers a new user for every new username .

How can i best change this behaviour so that new users are added only for new emails ?

I looked into the code and it appears that changing the code in the method
userExists() of class net.jforum.sso.SSOUtils is the only way .

In other words change

to



Am i correct in my assumptions ? Is there a better way ?

Its based on the code in the register() method is the same class .



Thanks in advance .

-regards
-ravindra

---------------------------------------------------------------------------------------------------------

I did't want to reply to my own question so editing the post .

It looks like editing the code is the way to do it . That's what i did any way . Besides i also have to now pass email from my custom sso besides having to edit code in

checkSSO() of net.jforum.ControllerUtils .

I found a bit of information from here :https://coderanch.com/t/578160 #19408 , its regarding redirects actually .



-regards
-ravindra

Postscript:
Also , every time i edit , i have to login again . If i haven't copied my post somewhere else , i end up typing it again . May be this is not the place to post it but is any one else having this issue ?

[originally posted on jforum.net by ravindra]
 
I'm so happy! And I wish to make this tiny ad happy too:
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