Новые ответы с меткой jwt
0
голосов
Авторизация в Asp.Net приложении с помощью Jose Jwt
Помогло решить проблему
1 - Controller
[Authorize(AuthenticationSchemes = "Bearer", Roles = "user")]
2 - Создание payload
DateTime centuryBegin = new(1970, 1, 1);
var ...
0
голосов
Как я могу получить идентификатор из URL-адреса в React и передать его на сервер?(Next js ) Typescript
Решил свою проблему с помощью useRouter()
const router = useRouter();
const { id } = router.query;
console.log(id);
- 379
0
голосов
Symfony6 jwt api аутентификация: Unable to find the controller for path "/api/login". The route is wrongly configured
В routes.yaml нужно было указать не path: /api/login как в документации, а
api_login_check:
path: /api/login_check
- 57
50 лучших ответов включены
Связанные метки
jwt × 163c# × 28
asp.net-core × 23
node.js × 22
javascript × 20
php × 17
java × 15
reactjs × 15
vue.js × 12
spring-boot × 12
spring-security × 12
token × 11
django × 8
авторизация × 8
asp.net-web-api × 8
axios × 8
authentication × 8
laravel × 7
spring × 7
auth × 7
oauth × 7
python × 6
rest × 6
django-rest-framework × 6
postgresql × 5