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

Defect/365 istrusted logindotgov code error #388

Merged
merged 6 commits into from
Jul 13, 2022

Conversation

dheitzer
Copy link
Contributor

No description provided.

@Elaine-Krauss-TCG
Copy link
Contributor

Elaine-Krauss-TCG commented Jul 13, 2022

Do we know what's going on with the circleci test failure?

Error response from daemon: unauthorized: authentication required

Edit: Seems to be working now!

Copy link
Contributor

@mjtravers mjtravers left a comment

Choose a reason for hiding this comment

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

Per my inline comment, is it reasonable to eliminate the use of cookies completely and rely solely on the ngrx store?

this.store.dispatch(userLoggedInAction({ payload: userLoginData }));
}
}
}
Copy link
Contributor

@mjtravers mjtravers Jul 13, 2022

Choose a reason for hiding this comment

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

Can we drop the use of cookies and use the ngrx store 100% or is the use of cookies required?

[googling around...]

I see that the CORS_ALLOW_CRENDENTIALS setting in Django may require the use of cookies. Is that what you found, David?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mjtravers well, the problem was that the server needs to send this data down to the client alongside a redirect. Because I couldn't use a JSON body in the redirect, I felt my only option was to pass them using cookies. This code then deletes the cookies once they are received following login.

Copy link
Contributor Author

@dheitzer dheitzer Jul 13, 2022

Choose a reason for hiding this comment

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

It actually does ultimately store the cookie data in the store UserLoginData object, but only receives it from the server via cookies. I'm open for any suggestions on how to send these from the server though if we want to use something else.

Copy link
Contributor

Choose a reason for hiding this comment

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

That works for me. Thanks for the clarification

@sonarcloud
Copy link

sonarcloud bot commented Jul 13, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

84.8% 84.8% Coverage
0.0% 0.0% Duplication

@dheitzer
Copy link
Contributor Author

Do we know what's going on with the circleci test failure?

Error response from daemon: unauthorized: authentication required

Do we know what's going on with the circleci test failure?

Error response from daemon: unauthorized: authentication required

Nice catch. That was odd. I tried rerunning the build and it worked fine now.

@mjtravers mjtravers merged commit b855657 into develop Jul 13, 2022
@mjtravers mjtravers deleted the defect/365-istrusted-logindotgov-code-error branch July 13, 2022 16:38
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.

3 participants