Skip to content

Commit

Permalink
removed CORS for .well-know endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: Mohd Kaif Siddique <[email protected]>
  • Loading branch information
Mohd Kaif Siddique committed Jul 22, 2024
1 parent a46fc09 commit ee0b9e9
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

import io.mosip.esignet.api.spi.AuditPlugin;
import io.mosip.esignet.api.util.Action;
Expand Down Expand Up @@ -85,11 +81,13 @@ public TokenResponse getTokenV2(@RequestParam MultiValueMap<String,String> param
}

@GetMapping("/.well-known/jwks.json")
@CrossOrigin(origins = "*")
public Map<String, Object> getAllJwks() {
return oAuthService.getJwks();
}

@GetMapping("/.well-known/oauth-authorization-server")
@CrossOrigin(origins = "*")
public Map<String, Object> getOAuthServerDiscoveryInfo() {
return oAuthService.getOAuthServerDiscoveryInfo();
}
Expand Down

0 comments on commit ee0b9e9

Please sign in to comment.