Nantes Université

Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 04c29212 rédigé par Féry Mathieu (Mathius)'s avatar Féry Mathieu (Mathius)
Parcourir les fichiers

feat(controller): Rework link for allow pass of token

parent 164db9c0
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #34139 réussi
......@@ -12,7 +12,6 @@ import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
......@@ -121,7 +120,7 @@ public class OAuthController {
@RequestMapping(value = "/link/{provider}", method = RequestMethod.GET)
public void connect(
@Parameter(description = "Provider used for this request", example = "gitlab") @NonNull @PathVariable String provider,
@Parameter(description = "Token for identify your account", example = "abcEFG145") @RequestHeader(required = false) @Nullable String token,
@Parameter(description = "Token for identify your account", example = "abcEFG145") @Nullable @RequestParam String token,
@Parameter(description = "Redirect URI for request", example = "https://example.foo/") @Nullable @RequestParam String redirectUri,
@NonNull HttpServletRequest request, @NonNull HttpServletResponse response)
throws AccessDeniedException, NotFoundException, BadRequest {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter