Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
jsConnect Not Syncing Roles
I am using an Embedded Vanilla Forum and passing in a SSO token. I have included the following in the json:
"roles": "Member,Moderator"
But only the member role is assigned to the user. Is there something else that needs to be done to enable the roles to be synced via this SSO Token?
0
Answers
Bump. Any update? Did you figure it out?
Have you added
to your config?
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Alright, to continue this thread: I've edited the config, added roles to my JSONP response and still don't have it working. It DOES modify the roles, however. No matter what I do, it removes all roles and assigns just "Member". Any clue why?
I'm having the same problem... no matter i tries.... nothing works... I get registered with "Member" role only.
I added to config:
I have added to sso:
Nothing works... any clue?
Have you made the connection "trusted" in the connection settings page?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
There was a typo.
$Configuration['Garden']['SSO']['SynchRoles'] = TRUE;
Should be
$Configuration['Garden']['SSO']['SyncRoles'] = TRUE;
sync or synch is a correct spelling. just variants of one another.
But only the config statement with the "h" is the one used in the code afaik.
vanilla 2.2.1
https://github.com/vanilla/vanilla/blob/Vanilla_2.2.1/applications/dashboard/settings/structure.php#L263
master
https://github.com/vanilla/vanilla/blob/4c6beb316750e247045741c41bc0a7d43ac22dee/applications/dashboard/settings/structure.php#L271
as far as I can tell the config statement is still
as Bleistivt stated above https://vanillaforums.org/discussion/comment/222475/#Comment_222475
based on the code
and the word can be spelled either way in english.
But the config statement needs to match what it expects $Configuration['Garden']['SSO']['SynchRoles'] and it expects it with the "h"
http://www.dictionary.com/browse/synch
http://www.merriam-webster.com/dictionary/sync
unless you mean something else regarding the code.
Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.