github descope/go-sdk v1.6.0

latest releases: v1.6.7, v1.6.6, v1.6.5...
9 months ago

Breaking changes

  • Certificate verification configuration: We've externalized the certificate verification configuration, so that the Descoper can decide whether to verify the server certificate or not. The CertificateVerify parameter has 3 modes: CertificateVerifyAutomatic (default - skip only when base URL is overridden, like when setting to localhost or using a port), CertificateVerifyAlways and CertificateVerifyNever.
    Please notice that this will break your application in case it uses a non-valid TLS certificate, and so migration should be tested carefully.
  • Support context: Added the ability to work with context, in all authentication methods and management functions.
    Please notice that this breaks compilation of all the related functions.
  • Appending user login IDs: We've added the option to assign multiple login IDs to a user, using the AdditionalLoginIDs attribute, upon creation and/or invitation of the user.
    Please notice that this breaks compilation of the following user functions: Create, CreateTestUser, Invite.

Enhancements

  • First, middle and last names of a user: We added system attributes for first (GivenName), middle (MiddleName) and last (FamilyName) of a user.
  • Delete a project: Added the Delete function for projects.
  • Check roles or permissions of a user: Check if the user has at least one of the roles in a provided list, using the GetMatchedRoles function. This also applies for checking permissions (GetMatchedPermissions), and also for checking the existence on a project level and a specific tenant level (GetMatchedTenantRoles , GetMatchedTenantPermissions).
  • Set the user's roles: We now support the option to set an existing user's roles. Instead of fetching existing roles, removing all of them and adding new ones 'from scratch' - use the SetRoles user function.
  • Delete a user by its userId: Support to delete a user by its userId property, using the new DeleteByUserID function.
  • Remove a user's passkey login IDs: Using the userRemoveAllPasskeys management function, the Descoper can decide to remove all passkeys associated with a specific user.

Don't miss a new go-sdk release

NewReleases is sending notifications on new releases.