Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 15 09:19
  • Oct 15 08:58
    anke522 starred cloudscribe/cloudscribe
  • Oct 14 18:10

    joeaudette on master

    mysql updates Merge pull request #465 from cl… (compare)

  • Oct 14 18:10
    joeaudette closed #465
  • Oct 14 18:10
    joeaudette opened #465
  • Oct 14 18:10

    joeaudette on dev

    mysql updates (compare)

  • Oct 14 16:53

    joeaudette on master

    fix mysql errors Merge pull request #670 from cl… (compare)

  • Oct 14 16:53
    joeaudette closed #670
  • Oct 14 16:52
    joeaudette opened #670
  • Oct 14 16:52

    joeaudette on dev

    fix mysql errors (compare)

  • Oct 14 16:17

    joeaudette on dev

    Add ability to change mysqlopti… Merge pull request #665 from Zi… mysql updates (compare)

  • Oct 14 16:17

    joeaudette on master

    mysql updates (compare)

  • Oct 14 16:17

    joeaudette on aspnet3x-migration

    mysql updates (compare)

  • Oct 14 13:52
    abomadi commented #669
  • Oct 13 21:55
    CrispinF commented #667
  • Oct 13 21:54
    CrispinF edited #667
  • Oct 12 20:56
    CrispinF opened #464
  • Oct 12 20:37
    CrispinF edited #463
  • Oct 12 20:36
    CrispinF edited #463
rickers1
@rickers1
1) I put in the FacebookAppId and FacebookSecret into the 'Social Logins' setting page for each of my 2 sites using social media logins
2) I'm logging ConfigureExternalAuthenticationProperties from the cloudscribe.Core.Web (3.1.92) source code I got from your GitHub repository. Built it and added to my project instead of the npm cloudscribe.Core.Web.dll
Joe Audette
@joeaudette
@rickers1 I believe it works correctly if you build an app with our project template, I don't know anything about the way you are integrating it in your project so can't really help with that
rickers1
@rickers1
I used your cloudscribe VS project template to create the project. I only added the cloudscribe.Core.Web source code after I was having this problem with the social media logins, so that I could log what was happening in order to try to find a solution. Are you able to tell me where to start looking to see why it’s getting the wrong facebookAppId please? I thought it would be somewhere in the SiteManager perhaps?
I’m assuming I’ve configured something incorrectly but not sure what there is to configure outside of the social media login settings page for each tenant site.
Joe Audette
@joeaudette
@rickers1 the facebookoptions comes from SiteFacebookOptions
@rickers1 are you saying it works for one host name site but when you try another site its gets the first site's facebook app id?
Joe Audette
@joeaudette
@rickers1 it could be a bug how we are caching the options when not using folder tenants, looking at the code I think both tenants would have the same name used for cachekey
@rickers1 I think I see the bug in the code, looking into it now
Joe Audette
@joeaudette
@rickers1 I've just published updated nugets that I think will solve the problem
rickers1
@rickers1
Thanks Joe. Sorry for not responding but I’m in Australia so it’s been overnight. I’ll try it out later this morning when I get back from riding.
rickers1
@rickers1
That's worked a treat. Thanks Joe
I have one other problem that may be a bug? Around line 150 of cloudscribe.Core.Web.Components.AccountService.TryExternalLogin in the block for if (!string.IsNullOrWhiteSpace(email) && email.Contains("@")) the statement: template.User = await UserManager.FindByNameAsync(email);
rickers1
@rickers1
can return null if it's a new social media login user and that causes var identityResult = await UserManager.AddLoginAsync(template.User, template.ExternalLoginInfo); to throw an error. I have got around it by putting if (template.User != null) around the var identityResult = ..... line.
Joe Audette
@joeaudette
@rickers1 I ran into an error there with new user yesterday while looking into the other issue and thought I fixed it. Are you still getting that error with new users from social auth?
rickers1
@rickers1
I don’t know because I’ve made the change above to your code which fixes the problem. What did you change to fix it?
Joe Audette
@joeaudette
@rickers1 if you just use the nugets it should be fixed, you can cloudscribe/cloudscribe@96d7ecc
see my changes in this commit cloudscribe/cloudscribe@96d7ecc
rickers1
@rickers1
Yes that’s worked a treat. Thanks Joe
Joe Audette
@joeaudette
@rickers1 thanks for alerting me about the problem
Joe Audette
@joeaudette
@all happy to report that we now have an official support forum on cloudscribe.com, going forward that will be the best place to ask questions https://www.cloudscribe.com/forum
Abdallah Madi
@abomadi
@joeaudette amazing feature
Joe Audette
@joeaudette
@abomadi which feature?
Abdallah Madi
@abomadi
Forum
Joe Audette
@joeaudette
oh, thanks! I'm working now to add it to the project template
as a product
Alok Sharma
@aloksharma1
can anyone guide me to a few tutorials on how i can make reusuable controls like devexpress or telerik in mvc?
i know its unrelated here, but it seems this chat is more active then aspnet/mvc official lol
i can make views and use di, but they seems to have styling and other stuff combined.. how does that pack in a dll?
Joe Audette
@joeaudette
@aloksharma1 styling comes from css which is best to keep in the app though there are ways to serve it from dlls. Views can be pre-compiled using RazorClass library projects and delivered as nugets. That is what I do in cloudscribe, we started with bootstrap3 but by keeping views in separate library/nuget it was easy to release separate nugets for bootstrap4. Also if someone wants to customize a view they can just copy it local to the main web app and it overrides the view in the nuget. Almost always want the main _Layout.cshtml to be in the web app but you can put a default one in the nuget.
@aloksharma1 https://gitter.im/aspnet/Home gets more chat than this room and is for asp.net core
@aloksharma1 but views aren't really comparable to controls, you can sort of make something like controls using TagHelpers
Alok Sharma
@aloksharma1
thanks, i am not using core yet
i did made a few reusable views using razorgenerator
& htmlhelper
Joe Audette
@joeaudette
@aloksharma1 I'm not as sure about how things were done in older mvc to encapsulate ui
Alok Sharma
@aloksharma1
was wondering if there is a systematic guide to what telerik or devex guys did
Joe Audette
@joeaudette
not that I know of
Alok Sharma
@aloksharma1
yeah, would have made life lot more easier lol
Joe Audette
@joeaudette
@aloksharma1 I guess that is why the mvc chat is empty, most people switching to asp.net core, that is where the future is
Alok Sharma
@aloksharma1
yup we are switching soon, but the baggage of legacy is still there and going to stay for atleast next few years
plus our project is very large would be a nightmare to turn it into core
rickers1
@rickers1
How do I access KVP properties in my custom profile method that adds claims to the IssuedClaims? I have a custom property, “company_name”, I’ve already created and populated when registering or editing user profile and now I want to add it to the access_token
I’m adding other claims, so know how to do that part.
Crispin Flower
@CrispinF
rickers1
@rickers1
Yes.
rickers1
@rickers1
I’m really looking for an extension that allows me to do something like (C#):
var companyName = User.GetCustomPropertyValue<string>(“company_name”);
Crispin Flower
@CrispinF
Hi @rickers1 you could do something like this for a custom prop called FavColor:
    var userProps = await myUserPropertyService.FetchByUser(Tenant.Id.ToString(), User.GetUserId());
    var found = userProps.Where(x => x.Key == "FavColor").FirstOrDefault();
    var value = found.Value;
with @inject IUserPropertyService myUserPropertyService
rickers1
@rickers1
That worked a treat. Thanks for the quick response.