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

feat: Psg 5154 introduce new method names #98

Merged
merged 24 commits into from
Nov 20, 2024

Conversation

tdeshong
Copy link
Contributor

@tdeshong tdeshong commented Nov 4, 2024

What's New?

Deprecates user methods and introduces replacement methods.

- deprecated methods
    - Passage.GetUser(userId: string): User
    - Passage.GetUserByIdentifier(identifier: string): User
    - Passage.ActivateUser(userId: string): User
    - Passage.DeactivateUser(userId: string): User
    - Passage.UpdateUser(userId: string, options: UpdateUserArgs): User
    - Passage.CreateUser(args: CreateUserArgs): User
    - Passage.DeleteUser(userId: string): boolean
    - Passage.ListUserDevices(userId: string): WebAuthnDevice[]
    - Passage.RevokeUserDevice(userId: string, deviceId: string): boolean
    - Passage.ValidateAuthToken(authToken: string): string, bool
- added new methods
    - Passage.User.Get(userId: string): User
    - Passage.User.GetByIdentifier(identifier: string): User
    - Passage.User.Activate(userId: string): User
    - Passage.User.Deactivate(userId: string): User
    - Passage.User.Update(userId: string, options: UpdateUserArgs): User
    - Passage.User.Create(args: CreateUserArgs): User
    - Passage.User.Delete(userId: string): boolean
    - Passage.User.ListDevices(userId: string): WebAuthnDevice[]
    - Passage.User.RevokeDevice(userId: string, deviceId: string): boolean
    - Passage.ValidateJwt(authToken: string): string, bool

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have manually tested my code thoroughly
  • I have added/updated inline documentation for public facing interfaces if relevant
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing integration and unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@tdeshong tdeshong changed the title Psg 5154 Introduce new method names feat: Psg 5154 introduce new method names Nov 4, 2024
@tdeshong tdeshong marked this pull request as ready for review November 5, 2024 15:13
@tdeshong tdeshong requested a review from ctran88 November 5, 2024 15:14
ctran88
ctran88 previously approved these changes Nov 14, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
version.txt Outdated Show resolved Hide resolved
authentication.go Outdated Show resolved Hide resolved
user.go Outdated Show resolved Hide resolved
authentication.go Outdated Show resolved Hide resolved
app_user.go Outdated Show resolved Hide resolved
app_user.go Outdated Show resolved Hide resolved
app.go Show resolved Hide resolved
app.go Outdated Show resolved Hide resolved
app.go Outdated Show resolved Hide resolved
@ctran88 ctran88 dismissed their stale review November 14, 2024 17:35

accidental approval

Copy link
Contributor

@ctran88 ctran88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change all structure of the deprecation docstrings to match what we saw with the other packages?

// NewForwardedOpenIDProvider tries to establishes the issuer from the request Host.
//
// Deprecated: use [NewProvider] with an issuer function direct.

authentication.go Outdated Show resolved Hide resolved
app.go Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Nov 20, 2024

@tdeshong tdeshong merged commit c63c75e into main Nov 20, 2024
5 checks passed
@tdeshong tdeshong deleted the PSG-5154-new-class-method-name branch November 20, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants