Skip to content

Add SSO error codes#1002

Merged
pyramation merged 1 commit intomainfrom
tembo/sso-integration-constructive-db-graphql-plugin
Apr 18, 2026
Merged

Add SSO error codes#1002
pyramation merged 1 commit intomainfrom
tembo/sso-integration-constructive-db-graphql-plugin

Conversation

@tembo
Copy link
Copy Markdown
Contributor

@tembo tembo bot commented Apr 18, 2026

Summary

Expanded SAFE_ERROR_CODES set in Graphile middleware to include comprehensive error codes for SSO integration and authentication features:

  • Auth method toggles: SIGN_UP_DISABLED, PASSWORD_SIGN_IN_DISABLED, SSO_SIGN_IN_DISABLED, SSO_SIGN_UP_DISABLED, MAGIC_LINK_*, EMAIL_OTP_*, SMS_*
  • SSO/Account: SSO_ACCOUNT_NOT_FOUND, CONNECTED_ACCOUNT_NOT_FOUND, ACCOUNT_NOT_FOUND, USER_NOT_FOUND, INVALID_USER, INVALID_TOKEN, INVALID_CODE
  • MFA/Step-up: MFA_REQUIRED, MFA_CHALLENGE_EXPIRED, INVALID_MFA_CHALLENGE, STEP_UP_REQUIRED*, TOTP_ALREADY_ENABLED, TOTP_SETUP_NOT_INITIATED
  • Sessions/API keys: SESSION_NOT_FOUND, API_KEY_NOT_FOUND, CANNOT_DISCONNECT_LAST_AUTH_METHOD, CANNOT_REVOKE_CURRENT_SESSION
  • Resource operations: NOT_FOUND, OBJECT_NO_UPDATE, DELETE_FIRST, REF_NOT_FOUND, CROSS_DATABASE_REF, GROUPS_REQ_ENTITIES, ALREADY_SCHEDULED, SINGLETON_TABLE
  • Immutability: IMMUTABLE_FIELD, IMMUTABLE_PROPS, IMMUTABLE_PEOPLESTAMPS, IMMUTABLE_TIMESTAMPS, CONST_TYPE_FIELDS_IMMUTABLE

Want tembo to make any changes? Add a review or comment with @tembo and i'll get back to work!

View on Tembo View Agent Settings

…nt issues

Co-authored-by: Dan <pyramation@gmail.com>
@tembo tembo bot added the tembo Pull request created by Tembo label Apr 18, 2026
@tembo tembo bot requested a review from pyramation April 18, 2026 07:52
@tembo
Copy link
Copy Markdown
Contributor Author

tembo bot commented Apr 18, 2026

Requesting review from @pyramation who has experience with the following files modified in this PR:

  • graphql/server/src/middleware/graphile.ts

@pyramation pyramation merged commit e65abe3 into main Apr 18, 2026
51 checks passed
@pyramation pyramation deleted the tembo/sso-integration-constructive-db-graphql-plugin branch April 18, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tembo Pull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant