skip to Main Content

Azure – How to return the list of Roles that the user has?

I followed the article, https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory and created an App role The below endpoint uses users role to authorize @CrossOrigin(origins = "http://localhost:8080") @RestController @RequestMapping("/api") public class TutorialController { @Autowired TutorialRepository tutorialRepository; @PreAuthorize("hasAnyAuthority('APPROLE_Admin', 'APPROLE_Contributor')") @GetMapping("/tutorials") public ResponseEntity<List<Tutorial>> getAllTutorials(@RequestParam(required = false) String title)…

VIEW QUESTION

class file for redis.clients.jedis.JedisShardInfo not found

when I upgrade the jedis to version 4.2.3 in gradle.build: api "redis.clients:jedis:4.2.3" show error: /Users/xiaoqiangjiang/source/reddwarf/backend/retire/dolphin-common/src/main/java/misc/config/redis/RedisConfig.java:77: error: cannot access JedisShardInfo return new JedisConnectionFactory(redisConfig); ^ class file for redis.clients.jedis.JedisShardInfo not found this is the redis config: @Bean public JedisConnectionFactory redisConnectionFactory() { var…

VIEW QUESTION
Back To Top
Search