Mimetis / aad_fastapi

aad fastapi bearer validation and client authentication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Roles folder is not installed

julyvee opened this issue · comments

Describe the bug
I installed the aad_fastapi package with pip, as mentioned and added it to my api as described in the Readme. But when I try to run the api, I get an error saying that the .roles module cannot be found.

ModuleNotFoundError: No module named 'aad_fastapi.roles'

I investigated further and I can see that the roles folder was not downloaded when I installed the package.

To Reproduce
Steps to reproduce the behavior:

  1. Install the package locally with pip
  2. Add authentication to API as described in Readme
  3. Try to run API with the launch.json example

Expected behavior
API runs and doesn't throw an error

Screenshots
Screenshot 2023-07-20 at 10 35 52
Screenshot 2023-07-20 at 10 34 59

Additional context
Running in ubuntu devcontainer

Hey @julyvee, please make sure to install the latest version of aad-fastapi,
I've tested it on my machine, from scratch on a python 3.7 venv, and aad-fastapi exists with roles modules

Yes it works now in the newest version 1.1.2, the roles folder is installed correctly. Thanks!