github descope/go-sdk v1.6.8

11 hours ago

Breaking changes

  • New import/export formats for flows and themes: We've changed our flow and theme formats to better support various CI/CD use cases. All flow and theme export and import functions have been updated to the new formats. They have also been changed to use plain maps to ensure that future additions to the formats are properly marshaled without requiring the SDK to be updated.

Enhancements

  • FGA 2.0 support: Now that we've revamped our FGA support, we also updated our SDK functions. Under Management.FGA we now support 4 more functions:
    • SaveSchema - Creates a new schema for the project.
    • CreateRelations - Creates new relations for the project.
    • DeleteRelations - Deletes relations for the project.
    • Check - Checks if the given relations are satisfied.
  • Template ID configuration: We added a new parameter named templateID to all 'sign up' / 'sign in' / 'sign up or in' functions, to allow controlling which custom email/sms template should be used by the function. This will override the default configuration set in the project's 'Authentication Methods' page.
  • Editing access keys: We opened up the option to edit some of access keys' configurations that were read-only up until now. This includes: description, authorization (tenant/role association) and permitted IPs list.
  • Revoke other user sessions: We added a new configuration in LoginOptions called revokeOtherSessions. This new configuration will expire all JWTs created other than the one in the request. This is useful for signing the user out of all their sessions, except for the current one.
  • MD5 hashes import support: We now support importing users with passwords that have been hashed using MD5.
  • Additional errors upon batch user invite: When batch inviting users, we added a new attribute to the response named AdditionalErrors, which will expose which users failed on the invite sent and which didn't.
  • README fixes: Some updates to the README and other function descriptions were made to clarify some of the explanations there.

Don't miss a new go-sdk release

NewReleases is sending notifications on new releases.