deepak4babu opened a new issue, #55366:
URL: https://github.com/apache/airflow/issues/55366

   ### Apache Airflow version
   
   3.0.6
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Im trying to create a custom reader role using /roles api endpoint. Getting 
405 '{"detail":"Method Not Allowed"}' error.
   
   ### What you think should happen instead?
   
   Role should be created
   
   ### How to reproduce
   
   Install apache-airflow-providers-fab==2.3.1
   
   set AIRFLOW__CORE__AUTH_MANAGER to 
"airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager"
   
   Run the below code 
   ```python
   import requests
   auth = ("<username>", "<password>")
   url = "http://<webserver url>"
   data = {"name": "test", "actions": [{"action": {"name": 
"can_read"},"resource": {"name": "Docs"},}]}
   res = requests.post(f"{url}/roles", auth=auth)
   ```
   
   ### Operating System
   
   PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" 
VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian 
HOME_URL="https://www.debian.org/"; SUPPORT_URL="https://www.debian.org/support"; 
BUG_REPORT_URL="https://bugs.debian.org/";
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-celery==3.12.2
   apache-airflow-providers-cncf-kubernetes==10.6.2
   apache-airflow-providers-common-compat==1.7.3
   apache-airflow-providers-common-io==1.6.2
   apache-airflow-providers-common-sql==1.27.4
   apache-airflow-providers-fab==2.3.1
   apache-airflow-providers-ftp==3.13.2
   apache-airflow-providers-http==5.3.3
   apache-airflow-providers-imap==3.9.2
   apache-airflow-providers-postgres==6.2.2
   apache-airflow-providers-smtp==2.1.2
   apache-airflow-providers-sqlite==4.1.2
   apache-airflow-providers-standard==1.5.0
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   We use a slightly modified version of official helm chart
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to