-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update sdk to match authsignal's general sdk conventions #24
Merged
stevenclouston
merged 21 commits into
main
from
Update-SDK-to-match-Authsignal's-general-SDK-conventions
Dec 8, 2024
Merged
Update sdk to match authsignal's general sdk conventions #24
stevenclouston
merged 21 commits into
main
from
Update-SDK-to-match-Authsignal's-general-SDK-conventions
Dec 8, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hwhmeikle
approved these changes
Nov 29, 2024
…_SERVER_API_ENDPOINT to AUTHSIGNAL_API_URL
stevenclouston
deleted the
Update-SDK-to-match-Authsignal's-general-SDK-conventions
branch
December 8, 2024 21:59
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Release Notes
Changes have been made so that conventions used in the PHP SDK align with Authsignal's general SDK conventions.
Breaking Changes
track
MethoduserId
(string): The userId of the user you are tracking the action for.action
(string): The action code that you are tracking.attributes
(array): An array of attributes to track.$params
.payload
parameter has been replaced withattributes
in the implementation.getAction
MethoduserId
(string): The userId of the user you are tracking the action for.action
(string): The action code that you are tracking.idempotencyKey
(string): The idempotency key for the action.$params
.getUser
MethoduserId
(string): The userId of the user you are tracking the action for.$params
.updateUser
MethoduserId
(string): The userId of the user to update.attributes
(array): The attributes to update for the user.$params
.enrollVerifiedAuthenticator
MethoduserId
(string): The userId of the user you are tracking the action for.attributes
(array): The authenticator object to enroll.$params
.deleteUser
MethoduserId
(string): The userId of the user you want to delete.$params
.deleteAuthenticator
MethoduserId
(string): The userId of the user.userAuthenticatorId
(string): The userAuthenticatorId of the authenticator to delete.$params
.validateChallenge
Methodtoken
(string): The JWT token string returned on a challenge response.userId
(string|null): The userId of the user you are tracking the action for (optional).action
(string|null): The action code that you are tracking (optional).$params
.Rename
setApiKey
Method tosetApiSecretKey
Rename
getApiKey
Method togetApiSecretKey
Rename
setApiHostname
tosetApiUrl
Rename
AUTHSIGNAL_SERVER_API_ENDPOINT
env var toAUTHSIGNAL_API_URL
Remove
setApiVersion
andgetApiVersion
setApiUrl
or theAUTHSIGNAL_API_URL
env variable.Non Breaking Changes
Add
updateAction
MethoduserId
(string): The userId of the user to update the action for.action
(string): The action code to update.idempotencyKey
(string): The idempotency key for the action.attributes
(array): Additional attributes for the action.**
getAuthenticators
Method**userId
(string): The userId of the user whose authenticators you want to retrieve.AuthsignalApiException
if the request fails.Example Usage: