Update module github.com/descope/go-sdk to v1.6.2 #402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.5.7
->v1.6.2
Release Notes
descope/go-sdk (github.com/descope/go-sdk)
v1.6.2
Compare Source
Breaking changes
Management.Project().ExportRaw(...)
>>Management.Project().Export(...)
Management.Project().ImportRaw(...)
>>Management.Project().Import(...)
Notice that this update does break compilation.
SetActivePassword
function , which they can then use to sign in. It will be applied with the project's password expiration settings, after which the user will have to update it to their own.Notice that we deprecated the
SetPassword
function, and now offer aSetTemporaryPassword
function instead. The functionality is the same as before (automatically expires the password, making the user reset it upon first authentication) - we just wanted to make sure it's clearer!Start
OAuth function and now offer aSignUpOrIn
function instead. The functionality is the same as before (initiation of an OAuth authentication), but we wanted it to align with the rest of our product and documentation.Enhancements
userId
parameter to the access keyCreate
function, so that upon creation that key will be associated with the user. This means that if the user's status is change (for example - the user is disabled) - then the access key's status changes accordingly (gets deactivated).Create
,Update
,Delete
) to support association with a specifictenantId
.Impersonate
function, you can decide which user you would want to temporarily sign in on behalf of. Please make sure to read our SDK's README on impersonation, as well as our KB article on the topic to fully understand this feature and how to securely use it.History
function (available both for an authenticated user as well as through management functions) - you can fetch information about the user's authentication history. Read our example of retrieving an authenticated user's history in the SDK's README.JITDisabled
parameter.Timeout
parameter in theClient
object.v1.6.1
Compare Source
Breaking changes
Please notice that this breaks compilation - considering this value is now an array and not a string.
CloneProject
response removed: We understood that the project information that currently returned in theCloneProject
function is redundant, and that it should be removed (and if it's needed - theExportProject
function will do).This change breaks compilation - since there's no response from the function now.
InviteBatch
function. See the example in the SDK's README.Notice that this update does break compilation.
Considering the various functions involved (such as
SignUp
) include another parameter - compilation will break.Enhancements
Using the dedicated
SSOSAMLSettings
,SSOSAMLSettingsByMetadata
andSSOOIDCSettings
objects, along with their matching functions, you can define a tenant's SSO configuration settings.This also means that dedicated SAML authentication commands are now deprecated, and we encourage you to update your code to use the new commands:
SAML.ExchangeToken
>>SSO.ExchangeToken
SAML.Start
>>SSO.Start
GetSettings
>>LoadSettings
ConfigureSettings
>>ConfigureSAMLSettings
ConfigureMetadata
>>ConfigureSAMLSettingsByMetadata
SSOApplication
object, you can find an option to create, load, update and delete applications in a specific project. Find out more about applications in our documentation.DeleteFlows
function, you can delete one or more flows.SearchAll
users function:text
will allow searching any text value in all user attributes;sort
will allow sorting the returned values alphabetically by attribute name.GetModified
authz function, to be able to understand which new targets and resources were created or updated since a certain time.Bug fixes
MethodEmbedded
parameter and theloginOptions
function were not exposed for usage when using test users, so we fixed it.v1.6.0
Compare Source
Breaking changes
CertificateVerify
parameter has 3 modes:CertificateVerifyAutomatic
(default - skip only when base URL is overridden, like when setting to localhost or using a port),CertificateVerifyAlways
andCertificateVerifyNever
.Please notice that this will break your application in case it uses a non-valid TLS certificate, and so migration should be tested carefully.
Please notice that this breaks compilation of all the related functions.
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
GivenName
), middle (MiddleName
) and last (FamilyName
) of a user.Delete
function for projects.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
).SetRoles
user function.userId
property, using the newDeleteByUserID
function.userRemoveAllPasskeys
management function, the Descoper can decide to remove all passkeys associated with a specific user.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.