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

refactor(sandbox): refactor oauth exmple sandbox #2235

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Tyagi-Sunny
Copy link
Contributor

fix oauth exmple sandbox

MIGRATION CHANGE:
migration-20230323132703- fix oauth exmple sandbox migration-20240116123737- fix oauth exmple sandbox migration-20241105074844- fix oauth exmple sandbox migration-20210421113146- fix oauth exmple sandbox migration-20220607063927- fix oauth exmple sandbox migration-20221110095658- fix oauth exmple sandbox migration-20221123082900- fix oauth exmple sandbox migration-20230524115047- fix oauth exmple sandbox

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • 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)
  • Intermediate change (work in progress)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • Performed a self-review of my own code
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Any dependent changes have been merged and published in downstream modules

@Tyagi-Sunny Tyagi-Sunny requested a review from a team as a code owner January 21, 2025 10:21
@Tyagi-Sunny Tyagi-Sunny changed the title fix(sandbox): fix oauth exmple sandbox refactor(sandbox): fix oauth exmple sandbox Jan 21, 2025
@Tyagi-Sunny Tyagi-Sunny changed the title refactor(sandbox): fix oauth exmple sandbox refactor(sandbox): refactor oauth exmple sandbox Jan 21, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

Revert this file
will unnecessarily release package

Copy link
Contributor

Choose a reason for hiding this comment

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

Revert this file
will unnecessarily release package

Copy link
Contributor

Choose a reason for hiding this comment

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

Revert this file
will unnecessarily release package
same for all the extra files

Comment on lines 23 to 87
# GOOGLE_TOKEN_INFO_URL=
# SAML_URL=
# SAML_CLIENT_ID=
# SAML_CLIENT_SECRET=
# SAML_TOKEN_URL=
# SAML_CALLBACK_URL=
# INSTAGRAM_AUTH_URL=
# INSTAGRAM_AUTH_CLIENT_ID=
# INSTAGRAM_AUTH_CLIENT_SECRET=
# INSTAGRAM_AUTH_TOKEN_URL=
# INSTAGRAM_AUTH_CALLBACK_URL=
# APPLE_AUTH_URL=
# APPLE_AUTH_CLIENT_ID=
# APPLE_AUTH_TEAM_ID=
# APPLE_AUTH_KEY_ID=
# APPLE_AUTH_CALLBACK_URL=
# FACEBOOK_AUTH_URL=
# FACEBOOK_AUTH_CLIENT_ID=
# FACEBOOK_AUTH_CLIENT_SECRET=
# FACEBOOK_AUTH_TOKEN_URL=
# FACEBOOK_AUTH_CALLBACK_URL=
# FORGOT_PASSWORD_LINK_EXPIRY=
# KEYCLOAK_HOST=
# KEYCLOAK_REALM=
# KEYCLOAK_CLIENT_ID=
# KEYCLOAK_CLIENT_SECRET=
# KEYCLOAK_CALLBACK_URL=

# # AZURE AD
# #boolean values will be 0 or 1

# AZURE_AUTH_ENABLED=
# AZURE_IDENTITY_METADATA=
# AZURE_AUTH_CLIENT_ID=
# AZURE_AUTH_REDIRECT_URL=
# AZURE_AUTH_CLIENT_SECRET=
# AZURE_AUTH_ALLOW_HTTP_REDIRECT=
# AZURE_AUTH_COOKIE_INSTEAD_SESSION=
# AZURE_AUTH_PASS_REQ_CALLBACK=
# AZURE_AUTH_VALIDATE_ISSUER=
# AZURE_AUTH_B2C_TENANT=
# AZURE_AUTH_CLOCK_SKEW=
# AZURE_AUTH_LOG_LEVEL=
# AZURE_AUTH_LOG_PII=
# AZURE_AUTH_NONCE_TIME=
# AZURE_AUTH_NONCE_COUNT=
# AZURE_AUTH_ISSUER=

# # key is 32 bit

# AZURE_AUTH_COOKIE_KEY=

# #iv is 12 bit

# AZURE_AUTH_COOKIE_IV=


# AUTH0_DOMAIN=
# AUTH0_CLIENT_ID=
# AUTH0_CLIENT_SECRET=
# AUTH0_CALLBACK_URL=

# MAX_JWT_KEYS=
# JWT_PRIVATE_KEY_PASSPHRASE=
# API_BASE_URL=
Copy link
Contributor

Choose a reason for hiding this comment

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

why all of these commented
add only the necessary ones

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added only the necessary ones

# The `--chown=node` flag ensures that the ownership of the copied files/directories is set to the `node` user.
# This is important because the subsequent commands in the Dockerfile are executed with the `node` user,
# and it needs the appropriate permissions to access and modify the copied files/directories.
COPY --chown=node packages ./packages
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need packages here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this auto generated docker file

Copy link
Contributor

Choose a reason for hiding this comment

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

add a seed file for this
for auth_client, tenant, roles etc that needs to be created for this beforehand

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

Copy link
Contributor

Choose a reason for hiding this comment

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

why an empty file
delete it

Comment on lines 17 to 21
// import {
// RoleRepository,
// TenantRepository,
// UserRepository,
// } from '../repositories';
Copy link
Contributor

Choose a reason for hiding this comment

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

not needed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm, we can import them from auth service

refactor oauth example

MIGRATION CHANGE:
migration-20230323132703- refactor oauth example
migration-20230524115047- refactor oauth example
migration-20240116123737- refactor oauth example
migration-20241105074844- refactor oauth example
migration-20210421113146- refactor oauth example
migration-20220607063927- refactor oauth example
migration-20221110095658- refactor oauth example
migration-20221123082900- refactor oauth example

gh-0
remove sonar

MIGRATION CHANGE:
migration-20241105074844- remove sonar

BREAKING CHANGE:
remove sonar

remove sonar
resolve test cases

gh-0
update test helper file

gh-0
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