Welcome Guest Search | Active Topics | Log In | Register

2 Pages <12
integration registered users can not see forums Options · View
phaedoHD
#16 Posted : Monday, September 08, 2008 3:57:22 PM
Rank: Advanced Member


Joined: 11/22/2007
Posts: 30
Location: Seattle
mddubs wrote:
Assign whatever role makes it work when you do it individually as IsStart, and that will assign all users that role automatically instead of you doing it manually.


So then it must be a bug, because that is was is set in "isStart". The role "Registered" is what i set manually to make it work, but that is also what is set in "isStart".

So basically the users aren't being added to a group for some reason when they are logged in and first visit the forum.
phaedoHD
#17 Posted : Tuesday, September 09, 2008 3:25:08 AM
Rank: Advanced Member


Joined: 11/22/2007
Posts: 30
Location: Seattle
ok, i more or less just worked around the problem.

I just wrote a function that goes through every member in the membership database and if they aren't already added in the forum it adds them and all that good stuff. If they are already added it just skips them.

So then all the old members will now be members of the forum and obviously it already works for all future members that register through the registration page.
Caffreys
#18 Posted : Friday, September 19, 2008 9:20:03 AM

Rank: YAF Forumling


Joined: 9/17/2008
Posts: 5
Location: Norwich
Yep - getting the same problems here. We could really do with Jaben having a look at what's going on with this!

I shall explain the issue again, just in case he has a look in here:

FYI - I'm running YAF Version 1.9.3 beta, alongside an existing .NET 3.5 application.

Syncing with my existing aspnet Membership provider is working great. The Roles have been ported over and [Linked] into YAF, and have been set up with the correct Access Masks and with [IsStart] set to true.

When I log in as an existing membership prov. user, the user details are ported over to YAF and everything seems fine.

The only problem is that the new user (and associated GroupID) is not added to dbo.Yaf_UserGroup table.

Thus, when you log in as the user you have less access rights than a Guest!

Has anyone found a workaround for this, or located the reason for this happening? I presume that Jaben had this working in his integration, otherwise it seems to me that the whole concept of syncing with an existing membership provider would be worthless. You cannot add users to groups manually on an ad hoc basis!

It just seems so strange, as you would have thought that the 'User porting/creation' function would have the porting role/group functionality rolled up with it?

It's frustrating, as I feel I'm about 1 step away from having YAF seamlessly integrated with my application and have just fallen at the last hurdle Sad

Help me Obiwan Kenobi, you're my only hope Question

test2005
#19 Posted : Friday, September 19, 2008 9:24:46 AM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 927
Location: Italy
Don't know about you guys, but I did notice that my custom efined groups did not port directly over. Since these did not match the YAF default, I had to re-assign all asks to the appropriate group in order for them to have the appropriate rights.

I don't think it's a bug, just user beware that ported groups need work inside YAF (rights wise)

.....the man in black fled across the desert..........and the gunslinger followed.....

appliedtechtx
#20 Posted : Friday, September 19, 2008 4:21:40 PM

Rank: YAF Forumling


Joined: 9/16/2008
Posts: 8
I had the same issue with my integration...but it's not really a bug in the YAF code...just really a disconnect in the processes/workflows...


What I noticed that was happening...

With the ASPNETDB manager/role provider (yeah i know the db is separate from the "provider"...but whatever) when users are created, the default is for them not to be automatically assigned "roles"(unless you modified/added code to do it).

So when YAF goes and grabs a user created through that default process, its grabbing a user with a null value for a "role."


Now I ain't the brightest bulb on the strand...but...

If you cant imagine the problems referencing "null values" creates, you shouldn't be touching code, you won't ever come near one of my computers, if you work in IT you should hand back all your wages you've earned so fraudulently, and go jump in front of a #@$%@ truck (lorry (sp?)for you peeps across the pond)...cuz you are worthless....

So easy solution that people hinted at earlier...have your "parent" app define a "role" for new users upon their creation...worked for me
appliedtechtx
#21 Posted : Saturday, September 20, 2008 8:16:36 AM

Rank: YAF Forumling


Joined: 9/16/2008
Posts: 8
So...I was doing some exploring....

When a user is added in the parent app, the role is not updated in the YAF app immediately. The user has to be added to the YAF role manually, YAF does not go and grab it by default...

There are a million ways to solve this...but since its a beta...i'm not gonna bother just yet....

I'll post a new topic with some suggestions on how to fix this for a release...

Until then, its all about your workflow/deployment strategy...aka a workaround...

That workaround is...

Create/Edit user roles under YAF that match exactly the strings of your user roles in your parent app...
test2005
#22 Posted : Saturday, September 20, 2008 9:25:15 AM

Rank: YAF MVP



Joined: 2/12/2005
Posts: 927
Location: Italy
Well the simplest way to solve this is make sure that your application roles match exactly your YAF roles. Then there isn't an issue. If it's a brand new app, not a problem.

If it's an existing app, then you need to decide which roles to use, the new YAF or your old roles. Either way, you need to make the modifications so proper roles are assigned.

I've deployed v1.9.3 first time, I've gone with using YAF roles, in addition to using the YAF signup and account management. Saves me from creating my own account management crap!

Razz
.....the man in black fled across the desert..........and the gunslinger followed.....

Users browsing this topic
Guest
2 Pages <12
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.108 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET