Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing field in OrganizationConnection #502

Closed
nickroyerUBC opened this issue Jun 23, 2021 · 1 comment · Fixed by #511
Closed

Missing field in OrganizationConnection #502

nickroyerUBC opened this issue Jun 23, 2021 · 1 comment · Fixed by #511
Labels
enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature

Comments

@nickroyerUBC
Copy link

When running the api in postman for the endpoint:

https://{{auth0_domain}}/api/v2/organizations/Org_ID/enabled_connections

it returns:
{
"connection_id": "abc",
"assign_membership_on_login": false,
"connection": {
"name": "test",
"strategy": "abcde"
}
}

however the "connection" object is missing in the SDK (7.8.0)

public class OrganizationConnection
{
    public OrganizationConnection();

    //
    // Summary:
    //     ID of the connection.
    [JsonProperty("connection_id")]
    public string ConnectionId { get; set; }
    //
    // Summary:
    //     Whether or not users that login will automatically be granted membership to the
    //     organization.
    [JsonProperty("assign_membership_on_login")]
    public bool AssignMembershipOnLogin { get; set; }
}

the root cause of why this is important is because for some reason the user.Identities only contains the name of the connection and not connection id

What was the expected behavior?

Reproduction

  • Step 1..
  • Step 2..
  • ...

Environment

  • Version of this library used:
  • Which framework are you using, if applicable:
  • Other modules/plugins/libraries that might be involved:
  • Any other relevant information you think would be useful:
@frederikprijck frederikprijck added the enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature label Jun 23, 2021
@frederikprijck
Copy link
Member

Thanks for reporting, this field looks to be missing indeed but needs to a bit more work to get this resolved as we are currently using this same class also when creating and updating the connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants