修复IAM401问题

This commit is contained in:
2026-08-18 22:10:24 +08:00
parent 83fb67a142
commit e7ca06736c
@@ -27,6 +27,7 @@ package org.springblade.auth.endpoint;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.security.PermitAll;
import jakarta.servlet.http.HttpServletRequest;
import lombok.AllArgsConstructor;
import org.springblade.core.oauth2.endpoint.OAuth2TokenEndPoint;
@@ -60,6 +61,7 @@ public class IamSsoEndpoint {
* @return token
*/
@RequestMapping(value = "/token", method = {RequestMethod.GET, RequestMethod.POST})
@PermitAll
@Operation(summary = "IAM统一身份认证登录", description = "使用IAM授权码换取本系统Token")
public ResponseEntity<Kv> token(HttpServletRequest request) {
String grantType = request.getParameter("grant_type");