![]() I believe that my problem isn't only regarding Actix-identity, but I'm not able to pass parameters inside middleware. (I'm able to print out a cookie from request header), but I have no idea how to import, use actix_identity, and have access to id parameter inside this middleware. I previously worked as a fullstack web developer before quitting my job to work as a freelancer and explore open source. I'm trying to implement auth-middleware and this middleware should check if the user has the correct cookie or token. Mario Zupan Follow I'm a software developer originally from Graz but living in Vienna, Austria. So, replace the current main. ![]() This method must be annotated with the actixrt::main annotation. In our example, one single method is enough to map all of them. I have made 3 "scopes" (guest, auth-user, admin) and now I don't know how to check if the user has access to these routes. The controller is the entry point of requests for Actix. ![]() I need to verify if the user has permission for some routes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |