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

fix(18441): redirect to Atlas login after registration in Keycloak #724

Merged

Conversation

alesiahil
Copy link
Contributor

@alesiahil alesiahil commented May 10, 2024

Summary by CodeRabbit

  • Bug Fixes
    • Updated the redirect URLs in the Login Form to ensure users are directed to the correct profile page after registration.

@alesiahil alesiahil self-assigned this May 10, 2024
Copy link
Contributor

coderabbitai bot commented May 10, 2024

Walkthrough

This update focuses on modifying the authentication flow within the LoginForm.tsx file. Specifically, it changes the redirect_uri for two variables, registrationUrlEncoded and registrationUrl, to point to a new location (https://atlas.kontur.io/active/profile) instead of the old one (https://www.kontur.io/portfolio/).

Changes

File Change Summary
src/features/user_profile/components/LoginForm/LoginForm.tsx Changed redirect_uri in registrationUrlEncoded and registrationUrl to https://atlas.kontur.io/active/profile

Poem

Beyond the code, in rabbit's snare,
Redirects hop without a care.
From portfolio realms they spring,
To active profiles now they cling.
The journey shifts, as paths align,
With all our redirects, oh so fine! 🐰✨


Tip

Early access features: enabled

We are currently testing the following features in early access:

  • OpenAI gpt-4o model for code reviews and chat: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available.

Note:

  • You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file.
  • Please join our Discord Community to provide feedback and report issues.
  • OSS projects are currently opted into early access features by default.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

github-actions bot commented May 10, 2024

Language To Recheck Fuzzy Untranslated Total
ar 3 24 101 128
de 2 24 101 127
es 3 24 101 128
id 2 24 101 127
ko 3 24 101 128
uk 0 7 8 15

Copy link

github-actions bot commented May 10, 2024

Bundle size diff

Old size New size Diff
4.93 MB 4.93 MB -9 B (-0.00%)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 1c6b9ba and 47b0362.
Files selected for processing (1)
  • src/features/user_profile/components/LoginForm/LoginForm.tsx (1 hunks)
Additional comments not posted (2)
src/features/user_profile/components/LoginForm/LoginForm.tsx (2)

14-14: Ensure the new redirect URI aligns with intended user flow and security policies.


14-14: The integration of the new registration URL appears correct. Please ensure thorough testing, especially for edge cases in the redirection flow.

@alesiahil alesiahil requested a review from a team May 10, 2024 22:12
@alesiahil alesiahil marked this pull request as draft May 13, 2024 06:49
@alesiahil alesiahil marked this pull request as ready for review July 1, 2024 19:14
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

Commits

Files that changed from the base of the PR and between 47b0362 and aa0f352.

Files selected for processing (1)
  • src/features/user_profile/components/LoginForm/LoginForm.tsx (1 hunks)
Additional comments not posted (2)
src/features/user_profile/components/LoginForm/LoginForm.tsx (2)

15-15: Ensure that the new redirect URL is correct.

The registrationUrlEncoded variable has been updated to redirect to https://atlas.kontur.io/active/profile. Verify that this URL is the intended destination and that it is functioning as expected.

Verification successful

Verification successful.

The new redirect URL https://atlas.kontur.io/active/profile is correct and functioning as expected, returning a status code of 200.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the new redirect URL is correct and functioning.

# Test: Perform a HTTP request to the new URL. Expect: Status code 200.
curl -o /dev/null -s -w "%{http_code}\n" "https://atlas.kontur.io/active/profile"

Length of output: 85


16-16: Ensure that the new redirect URL is correct.

The registrationUrl variable has been updated to redirect to https://atlas.kontur.io/active/profile. Verify that this URL is the intended destination and that it is functioning as expected.

Verification successful

Verification successful.

The registrationUrl variable has been correctly updated to redirect to https://atlas.kontur.io/active/profile. The URL is active and functioning as expected.

  • The keycloakUrl and keycloakRealm values are correctly set in the configuration.
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the new redirect URL is correct and functioning.

# Test: Perform a HTTP request to the new URL. Expect: Status code 200.
curl -o /dev/null -s -w "%{http_code}\n" "https://atlas.kontur.io/active/profile"

Length of output: 85



Script:

#!/bin/bash
# Search for occurrences of 'registrationUrl' to understand its context and ensure it is the correct URL.
rg 'registrationUrl'

Length of output: 510



Script:

#!/bin/bash
# Search for occurrences of 'configRepo' to understand how 'keycloakUrl' and 'keycloakRealm' are set.
rg 'configRepo'

Length of output: 12849



Script:

#!/bin/bash
# Search for the definition and implementation of the 'ConfigRepository' class in the 'src/core/config' directory.
rg 'class ConfigRepository' src/core/config

Length of output: 95



Script:

#!/bin/bash
# Extract the full implementation of the 'ConfigRepository' class from 'src/core/config/index.ts'.
ast-grep --lang typescript --pattern $'class ConfigRepository {
  $$$
}' src/core/config/index.ts

Length of output: 3399



Script:

#!/bin/bash
# Search for occurrences of 'stageConfig' and 'appConfig' to understand their values and ensure they are correctly set.
rg 'stageConfig|appConfig'

Length of output: 2836



Script:

#!/bin/bash
# Search for the 'getStageConfig' function implementation in 'src/core/config/loaders/stageConfigLoader.ts'.
rg 'getStageConfig' src/core/config/loaders/stageConfigLoader.ts

Length of output: 127



Script:

#!/bin/bash
# Extract the full implementation of the 'getStageConfig' function from 'src/core/config/loaders/stageConfigLoader.ts'.
ast-grep --lang typescript --pattern $'export async function getStageConfig(): Promise<StageConfig> {
  $$$
}' src/core/config/loaders/stageConfigLoader.ts

Length of output: 2813

@alesiahil alesiahil changed the title Redirect to Atlas login after registration in Keycloak fix(18441): redirect to Atlas login after registration in Keycloak Jul 1, 2024
@alesiahil alesiahil merged commit 56ea153 into main Jul 1, 2024
7 checks passed
@alesiahil alesiahil deleted the 18441-redirect-to-atlas-login-after-registration-in-keycloak branch July 1, 2024 19:27
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