pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 177 forks source link

Allow auth view to be served on non-default domain #6

Open kekssw opened 10 years ago

kekssw commented 10 years ago

As different parts of the app may be served on different subdomains - e.g. browsable views and API - if would be great if flask-jwt provided an option to specify desired domain for auth view.

Additionally:

mattupstate commented 10 years ago

This is obviously useful, but you changed some functionality that I see as required. Being able to set JWT_AUTH_URL_RULE and JWT_AUTH_ENDPOINT to None allows one to disable the auth endpoint. I'm not sure why you chose to change that. However, subdomain support is good and I'd like you to add a test to verify your change.