-
프로젝트에 등록된 모든 oauth-clients 확인 APIWEB/BACK 2024. 11. 29. 13:26반응형
clientRegistrationRepository를 통한 동적 조회
@Autowired private ClientRegistrationRepository clientRegistrationRepository; @GetMapping("/oauth-clients") public String getOAuthClients() { StringBuilder clients = new StringBuilder(); for (ClientRegistration registration : ((Iterable<ClientRegistration>) clientRegistrationRepository)) { clients.append("Client: ").append(registration.getClientName()).append("\n"); } return clients.toString(); }
반응형'WEB > BACK' 카테고리의 다른 글
aws marketplace 연동 , aws credential 자격증명 설정,entitlements (0) 2024.11.29 query DSL 적용방법정리 & 자동 빌드 (0) 2024.11.29 spring cloud config (security) 구현하기 4 (0) 2024.08.01 spring cloud config (server,client,watcher) 구현하기 2 - client server (0) 2024.07.24 spring cloud config (server,client,watcher,java) 구현하기 1 (0) 2024.07.24