diff --git a/docs/docs/multi-tenant/azure_setup.mdx b/docs/docs/multi-tenant/azure_setup.mdx index 75849d9..3a1470d 100644 --- a/docs/docs/multi-tenant/azure_setup.mdx +++ b/docs/docs/multi-tenant/azure_setup.mdx @@ -1,5 +1,5 @@ --- -title: AAD Authorization +title: Azure configuration sidebar_position: 1 --- diff --git a/docs/docs/multi-tenant/locking_down_on_roles.mdx b/docs/docs/multi-tenant/locking_down_on_roles.mdx index d9af973..67f62af 100644 --- a/docs/docs/multi-tenant/locking_down_on_roles.mdx +++ b/docs/docs/multi-tenant/locking_down_on_roles.mdx @@ -12,7 +12,7 @@ from fastapi_azure_auth.user import User async def validate_is_admin_user(user: User = Depends(azure_scheme)) -> None: """ - Validated that a user is in the `AdminUser` role in order to access the API. + Validate that a user is in the `AdminUser` role in order to access the API. Raises a 401 authentication error if not. """ if 'AdminUser' not in user.roles: diff --git a/docs/docs/single-tenant/azure_setup.mdx b/docs/docs/single-tenant/azure_setup.mdx index 8167ba5..f8fa906 100644 --- a/docs/docs/single-tenant/azure_setup.mdx +++ b/docs/docs/single-tenant/azure_setup.mdx @@ -1,5 +1,5 @@ --- -title: AAD Authorization +title: Azure configuration sidebar_position: 1 --- diff --git a/docs/docs/single-tenant/locking_down_on_roles.mdx b/docs/docs/single-tenant/locking_down_on_roles.mdx index d9af973..67f62af 100644 --- a/docs/docs/single-tenant/locking_down_on_roles.mdx +++ b/docs/docs/single-tenant/locking_down_on_roles.mdx @@ -12,7 +12,7 @@ from fastapi_azure_auth.user import User async def validate_is_admin_user(user: User = Depends(azure_scheme)) -> None: """ - Validated that a user is in the `AdminUser` role in order to access the API. + Validate that a user is in the `AdminUser` role in order to access the API. Raises a 401 authentication error if not. """ if 'AdminUser' not in user.roles: diff --git a/fastapi_azure_auth/__init__.py b/fastapi_azure_auth/__init__.py index b36a090..22b2b3f 100644 --- a/fastapi_azure_auth/__init__.py +++ b/fastapi_azure_auth/__init__.py @@ -3,4 +3,4 @@ SingleTenantAzureAuthorizationCodeBearer, ) -__version__ = '3.0.0-rc1' +__version__ = '3.0.0' diff --git a/pyproject.toml b/pyproject.toml index d875ae7..8d06124 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fastapi-azure-auth" -version = "3.0.0-rc1" # Remember to change in __init__.py as well +version = "3.0.0" # Remember to change in __init__.py as well description = "Easy and secure implementation of Azure AD for your FastAPI APIs" authors = ["Jonas Krüger Svensson "] readme = "README.md"