Skip to content

PO-2597: Investigate annotation based permission validation#39

Open
Ben-Edwards-cgi wants to merge 10 commits intomasterfrom
PO-2597
Open

PO-2597: Investigate annotation based permission validation#39
Ben-Edwards-cgi wants to merge 10 commits intomasterfrom
PO-2597

Conversation

@Ben-Edwards-cgi
Copy link
Copy Markdown
Collaborator

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/PO-2597

Change description

Updated security setup

Does this PR introduce a breaking change? (check one with "x")

[X] Yes
[ ] No

if (authentication instanceof JwtAuthenticationToken jwtAuth) {
String token = jwtAuth.getToken().getTokenValue();
requestTemplate.header("Authorization", "Bearer " + token);
} else {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just wondered why this 'else' clause was removed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I removed it as it does not tell us a huge amount in the logs, and I thought I added it apart of this change.

Happy to hear your thoughts as I have no objections to adding it back if you see there is value

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