Skip to content

[Draft]: SSO using nextauth#1045

Closed
bhavanakarwade wants to merge 20 commits intodevelop-nextjsfrom
feat/sso-nextauth
Closed

[Draft]: SSO using nextauth#1045
bhavanakarwade wants to merge 20 commits intodevelop-nextjsfrom
feat/sso-nextauth

Conversation

@bhavanakarwade
Copy link
Contributor

@bhavanakarwade bhavanakarwade commented Jun 18, 2025

Important

Introduces SSO using NextAuth with redirect handling and updates authentication components to support redirectTo and clientAlias.

  • Authentication:
    • Introduces SSO using NextAuth in authOptions with redirect handling.
    • Updates EmailVerificationForm, SignUpUser, UserInfoForm, VerifyEmail, and user-auth-form to handle redirectTo and clientAlias parameters.
    • Modifies SessionCheck to manage session redirects based on redirectTo.
  • API Changes:
    • Changes sendVerificationMail in Auth.ts to use clientAlias instead of clientId and clientSecret.
  • UI Components:
    • Updates Modal.tsx to improve code formatting.
    • Adjusts PasswordSuggestionBox.tsx for better styling.
  • Miscellaneous:
    • Updates authSlice.ts and authOptions.ts for session token management.
    • Refactors OrganizationDashboard, CreateOrganizationModal, and WalletSpinupComponent to handle redirectTo and clientAlias.

This description was created by Ellipsis for 784f405. You can customize this summary. It will automatically update as commits are pushed.

Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Caution

Changes requested ❌

Reviewed everything up to e09bef2 in 2 minutes and 13 seconds. Click for details.
  • Reviewed 620 lines of code in 19 files
  • Skipped 0 files when reviewing.
  • Skipped posting 7 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. nextjs/src/features/auth/components/user-auth-form.tsx:84
  • Draft comment:
    Typo in query parameter: 'clienAlias' should be 'clientAlias'.
  • Reason this comment was not posted:
    Marked as duplicate.
2. nextjs/src/features/wallet/SetPrivateKeyValue.tsx:78
  • Draft comment:
    Ensure consistent private key format. The check for length 64 may not account for a 0x-prefix.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. nextjs/src/utils/authOptions.ts:74
  • Draft comment:
    Possible typo in API route. 'sinIn' might be intended as 'signIn'.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. nextjs/src/utils/authOptions.ts:62
  • Draft comment:
    The credentials provider includes an unused 'isPasskey' field. Consider removing it if not needed.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. nextjs/src/features/organization/connectionIssuance/components/ConnectionList.tsx:125
  • Draft comment:
    Consider using a controlled checkbox instead of defaultChecked for consistency.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. nextjs/src/features/auth/components/SignUpUser.tsx:20
  • Draft comment:
    Typo: The query parameter string uses 'clienAlias' instead of 'clientAlias'.
  • Reason this comment was not posted:
    Marked as duplicate.
7. nextjs/src/utils/authOptions.ts:74
  • Draft comment:
    Typographical error: It appears that 'sinIn' may be a typo. Should it be 'signIn' for the authentication endpoint?
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_Y8ZJ9bHNd5aqil8o

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

ajile-in and others added 18 commits June 19, 2025 00:20
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Signed-off-by: Ajay Jadhav <ajay@ayanworks.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Signed-off-by: Ajay Jadhav <ajay@ayanworks.com>
Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
Signed-off-by: sanjaykhondal-aw <sanjay.khondal@ayanworks.com>
Signed-off-by: sanjaykhondal-aw <sanjay.khondal@ayanworks.com>
Signed-off-by: sanjaykhondal-aw <sanjay.khondal@ayanworks.com>
Signed-off-by: sanjaykhondal-aw <sanjay.khondal@ayanworks.com>
* fix/issuance card and color fix

Signed-off-by: Sujit <sujit.sutar@ayanworks.com>

* fix/ added minor fix

Signed-off-by: Sujit <sujit.sutar@ayanworks.com>

* fix : alert component issue error handling

Signed-off-by: Sujit <sujit.sutar@ayanworks.com>

* fix: ellipse comment

Signed-off-by: Sujit <sujit.sutar@ayanworks.com>

---------

Signed-off-by: Sujit <sujit.sutar@ayanworks.com>
Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
Signed-off-by: bhavanakarwade <bhavana.karwade@ayanworks.com>
Signed-off-by: Sujit <sujit.sutar@ayanworks.com>
Signed-off-by: Sujit <sujit.sutar@ayanworks.com>
Signed-off-by: Sujit <sujit.sutar@ayanworks.com>
* refactor: user profile section and developers setting page

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: organization already exist issue

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* resolve: ellipsis comments on PR

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* resolve: ellipsis comments on pull request

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* developers settingUI rendering issues

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* developers settings rendering issues

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: changes for avatar component colors

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: svg changes for key icon on developer setting

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* refactor: developers setting page

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* refactor: user profile section and developers setting page

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* revert: icon issue for dedicated agent ledger icons

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* resolve: sonarlint issues

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* removed extra code

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: setup wallet later button issue

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

---------

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>
* fix: organization breadcrumb issue

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* dedicated agent ledger icons

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* resolve: sonarlint issues

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* resolve: sonarcloud issues

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* refactor: common validation function for ledger config validations

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: passkey in profile section

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: ellipse comments

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

---------

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>
Signed-off-by: sanjaykhondal-aw <sanjay.khondal@ayanworks.com>
Signed-off-by: sanjaykhondal-aw <sanjay.khondal@ayanworks.com>
* fix: UI fixes for sign up page

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: sonarlint issues

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: ellips suggestions on PR

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: issues in profile section

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: ellipsis comments on PR

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

* fix: ellipsis comments on PR

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>

---------

Signed-off-by: pranalidhanavade <pranali.dhanavade@ayanworks.com>
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed 784f405 in 28 seconds. Click for details.
  • Reviewed 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. nextjs/src/features/profile/components/EditUserProfile.tsx:274
  • Draft comment:
    Extra newline added. If this spacing is intentional for readability, it's fine; otherwise, consider removing unnecessary whitespace.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_QLFjaY9qGMuSDz7y

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@sonarqubecloud
Copy link

@bhavanakarwade bhavanakarwade self-assigned this Jun 25, 2025
@pranalidhanavade pranalidhanavade deleted the feat/sso-nextauth branch September 18, 2025 11: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.

5 participants