Skip to content

Conversation

dongiveajack
Copy link
Owner

added support for authorization

@dongiveajack dongiveajack changed the base branch from master to cf_master May 19, 2025 09:23
@FeignClient(name = "realm", url = "${realm.base-url}")
public interface RealmClient {
@RequestMapping(method = RequestMethod.POST, value = "/sessioninfo/authorize")
RealmSessionInfoResponse getSessionInfo(@RequestHeader("Cookie") String cookie, @RequestBody RealmAuthenticateRequest request);
Copy link
Owner Author

Choose a reason for hiding this comment

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

will remove this redundant client call

@FeignClientAdvice(RealmExceptionHandler.class)
@FeignClient(name = "realm", url = "${realm.base-url}")
public interface RealmClient {
@RequestMapping(method = RequestMethod.POST, value = "/sessioninfo/authorize")

Choose a reason for hiding this comment

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

duplicate api definition. same as authorize present below

Replaced exact URI matching with pattern-based matching using AntPathMatcher. This allows for more flexible and efficient identification of allowed permissions based on API patterns. Added a new helper method to handle pattern matching logic.
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