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

ATO-983: Get InternalCommonSubjectIdentifier From AuthSession (Auth ICSID 2/3) #5455

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Oct 29, 2024

What

Use Internal Common Subject Identifier From Auth Session

How to review

  1. Code Review

Checklist

  • Impact on orch and auth mutual dependencies has been checked.

Previous PR: #5396
Next PR: #5454

@ghost ghost changed the title Ato 983/get internal common subject identifier from auth session ATO-983: Get InternalCommonSubjectIdentifier From AuthSession (Auth 2/3) Oct 29, 2024
@ghost ghost changed the title ATO-983: Get InternalCommonSubjectIdentifier From AuthSession (Auth 2/3) ATO-983: Get InternalCommonSubjectIdentifier From AuthSession (Auth ICSID 2/3) Oct 29, 2024
@ghost ghost force-pushed the ATO-983/Get-InternalCommonSubjectIdentifier-From-AuthSession branch 4 times, most recently from fa3fc72 to 2fb578c Compare October 31, 2024 11:55
@ghost ghost force-pushed the ATO-983/Get-InternalCommonSubjectIdentifier-From-AuthSession branch 11 times, most recently from c326ca6 to 02d9d3c Compare November 18, 2024 16:25
@ghost ghost marked this pull request as ready for review November 18, 2024 16:38
@ghost ghost requested review from a team as code owners November 18, 2024 16:38
@ghost ghost force-pushed the ATO-983/Get-InternalCommonSubjectIdentifier-From-AuthSession branch from 02d9d3c to bc49eca Compare November 19, 2024 10:53
authSessionService.getSessionFromRequestHeaders(input.getHeaders());
if (authSession.isEmpty()) {
if (authSessionOptional.isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be good to assign the optional to a variable rather than calling get throughout the handler

Copy link
Author

Choose a reason for hiding this comment

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

Yes, that'd be better and is more consistent with what's done in the verify mfa code handler

@ghost ghost force-pushed the ATO-983/Get-InternalCommonSubjectIdentifier-From-AuthSession branch from bc49eca to a1e81cf Compare November 19, 2024 11:23
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.

1 participant