Developer forum

Forum » Development » External Authentication in DW9

External Authentication in DW9

Anders Ebdrup
Anders Ebdrup
Reply

Hi Dynamicweb,

 

We have upgraded a solution to 9.2 from 8.9, but after the upgrade users are not added user management groups.
In ExternalLogin.aspx.vb something seems to be missing:

 

    Private Sub AddUserToUserManagementGroup(ByVal provider As Provider, ByVal user As User)
        If Not String.IsNullOrEmpty(provider.ExternalLoginProvider.CreateNewUserPage) Then
            Dim pageID As Integer = GetIdFromPageURL(provider.ExternalLoginProvider.CreateNewUserPage)
            If pageID > 0 Then
                Dim service As IParagraphService = Extensibility.ServiceLocator.Current.GetParagraphService()
                Dim paragraphs As IEnumerable(Of Paragraph) = service.GetParagraphsByPageId(pageID)
                For Each paragraph As Paragraph In paragraphs
                    If paragraph.ModuleSystemName = "UserManagementFrontend" Then
                        Dim properties As Properties = New Properties()
                        properties.LoadProperty(paragraph.ModuleSettings)
                        'Dim paragraphSettings As ParagraphSettings = New ParagraphSettings(properties)
                        'If Not IsNothing(paragraphSettings) Then
                        '    For Each group As Group In paragraphSettings.CreateProfileNewUserGroups
                        '        user.AddToGroup(group.ID)
                        '    Next
                        'End If
                        Exit For
                    End If
                Next
            End If
        End If
    End Sub

 

A part of the code above is commented out and I can not see this is implemented as well: https://www.screencast.com/t/8mhE7ZWvtq.

Hope you can help me?

 

Best regards, Anders


Replies

 
Martin Vang
Martin Vang
Reply
This post has been marked as an answer

Hi Anders,

This should have been fixed in the latest release of 9.2. Which version are you using?

 

BR

Martin

Votes for this answer: 1
 
Anders Ebdrup
Anders Ebdrup
Reply

Thank you so much for quick response!

I was using 9.2.15, but after the upgrade to 9.2.16 it is now working! :-)

 

You must be logged in to post in the forum