1

I was trying to implement login functionality in my app. I started with using flask-security for basic api exposed by flask-security like register, login, logout etc.

While doing this, I realised that some of the API's provided by flask-security is not of my use. So for that, I was looking to disable some of the API but didn't get anything related to that.

I saw flask-security-config too, but there is no way to disable API which is exposed by flask-security.

I am new to flask & flask-security & struggled a lot but didn't get sucess. Any useful suggestion will be very helpful.

Thanks!

yugantar kumar
  • 1,982
  • 1
  • 23
  • 33

2 Answers2

0

I found out the way to do this.

Follow this link: flask security config to disable API's which you don't want to keep in your application.

yugantar kumar
  • 1,982
  • 1
  • 23
  • 33
0

For posterity, you can disable the default flask-security blueprint during the Security object init app.security = Security(app, user_datastore, register_blueprint=False).

user3113353
  • 51
  • 1
  • 5