why cant i make requests to my endpoint?

hey guys. in java spring i have endpoint localhost:8080/sol/payments. and i want to call it with Postman. my body is:
{
"transactionId": "111",
"clientId": "111",
"amount": 100.00,
"signature": "184db757c21d73103522bb90aa621410d372ea10b305390826b8b1bda4fa97f54d343db2208d390a"
}
{
"transactionId": "111",
"clientId": "111",
"amount": 100.00,
"signature": "184db757c21d73103522bb90aa621410d372ea10b305390826b8b1bda4fa97f54d343db2208d390a"
}
in Authorization section i select Basic Auth, specify the username and password but i get this:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<title>Import</title>
</head>
<body>
<form action="/login" method="post">
<div><label> User Name : <input type="text" name="username"/> </label></div>
<div><label> Password: <input type="password" name="password"/> </label></div>
<div><input type="submit" value="Sign In"/></div>
</form>
</body>
</html>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<title>Import</title>
</head>
<body>
<form action="/login" method="post">
<div><label> User Name : <input type="text" name="username"/> </label></div>
<div><label> Password: <input type="password" name="password"/> </label></div>
<div><input type="submit" value="Sign In"/></div>
</form>
</body>
</html>
can somebody help me out? why this isnt working?
3 Replies
JavaBot
JavaBot5d ago
This post has been reserved for your question.
Hey @Fragmented friends! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
ayylmao123xdd
ayylmao123xdd5d ago
can you show the security config
JavaBot
JavaBot5d ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?