This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Uploading the Avatar using SSO

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to upload the user Avatar for the posts but with SSO i am totaly confused

Basically user can upload Avatar by editing through his profile link in jforum but while using SSO is it Possible

if Possible Then How to Implement

please help me this might help for others also who r all implementing SSO

Thanks in Advance
[originally posted on jforum.net by rb68626]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what you are asking is how to remove the "change your password" section of the update user profile page...

If so, the easy way to do this is to edit the user_form.htm template and just comment out the sections you don't want users to see.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same way you do without SSO... the user clicks on my profile and do it via the Avatar Control panel at the bottom.


[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply but reply is completed irrelevent my question is

How user(with out admin access) will upload his image when sso is implemented and how to display the user image with the post
[originally posted on jforum.net by rb68626]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes offcouse by using profile link .But in my application we had removed the profile link because the user details are retrieved from other server by means of SSO so there is no possibility of uploading user avatar through profile link.
[originally posted on jforum.net by rb68626]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what I meant in my first post. You can edit the profile form template to omit items coming via SSO (or display them R/O with a link to where they can be changed).

This would allow jforum specific things (like uploading an avatar) to be done via the jForum profile and SSO things done via the "SSO Application" (like changing password, names, and the like).
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I think what you're saying is that each user already has a *single* Avatar image associated with them on the SSO information source.

The solution is to treat this as an external avatar and set it when you create the jForum user.

Most of the SSO examples make use of the SOUtils.register method to create the jForum user object. However, this only takes the name and e-mail address of the user. In your SSO implementation, you can basically duplicate this code and set any user information, like an external Avatar URL.

FWIW, if you're doing something like this and setting more user info, it's also a good ideal to add in the code to verify that the jForum user info matches the SSO info when authenticated. This allows for changes made in the SSO source to be visible in jForum.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very sorry to trouble you .I think u din't get my question.

First Thing is image will be in SSO Server ,So while showing post/reply how to relate the user Image and his post/reply (There will be multiple reply with different user )so differnet image has to show with appropriate reply.

How i can relate the image and post/reply which is coming from two different application

Will it be possibe.Else should i want to store the user image in jforum table itself?


[originally posted on jforum.net by rb68626]
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!