anphamvn edited a comment on issue #13697:
URL: https://github.com/apache/superset/issues/13697#issuecomment-813394703


   > @anphamvn follow the step here :
   > 
   > * Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file 
config.py
   > * Add datasource access in public role
   > * Re-launch superset with superset init
   > * If have an error ' the csrf token is missing' , set WTF_CSRF_ENABLED = 
False in config.py
   
   Thanks @Riskatri 
   i followed your instructions but still no luck :)
   
   1. Set ROLE_PUBLIC as public and PUBLIC_ROLE_LIKE = ‘Gamma’ in file config.py
   AUTH_ROLE_PUBLIC = 'Public'
   PUBLIC_ROLE_LIKE = 'Gamma'
   
![Capture_1](https://user-images.githubusercontent.com/38240236/113580982-ad102a80-9650-11eb-9d02-a038c6f6b7eb.PNG)
   2. Add datasource access in public role 
   i set 'All Datasource Access on all_datasource_access
   
![Capture_2](https://user-images.githubusercontent.com/38240236/113580986-ae415780-9650-11eb-996e-da1c4702b419.PNG)
    3. Re-launch superset with superset init
    Yes, sure :)
   here log file
   `INFO:superset.security.manager:Fetching a set of all perms to lookup which 
ones are missing
   Creating missing datasource permissions.
   INFO:superset.security.manager:Creating missing datasource permissions.
   Creating missing database permissions.
   INFO:superset.security.manager:Creating missing database permissions.
   Creating missing metrics permissions
   INFO:superset.security.manager:Creating missing metrics permissions
   Cleaning faulty perms
   INFO:superset.security.manager:Cleaning faulty perms`
   
![Error](https://user-images.githubusercontent.com/38240236/113580987-ae415780-9650-11eb-8125-d3631f45b848.PNG)
   ==> after that the error 'The CSRF missing ...' still occurred
   
   4 I try to set  WTF_CSRF_ENABLED = False and  when I logged in to the page 
there was no response and went back to login
   
   
   
   
   


-- 
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to