Flask-OIDC expects the id_token to not be None, but it will be None if the openid scope isn't requested.
No helpful exception is raised when this occurs (it results in a AttributeError since NoneType doesn't have get). It would be much better to explicitly handle the error and raise an exception notifying the developer of their error.
Flask-OIDC expects the id_token to not be None, but it will be None if the openid scope isn't requested.
No helpful exception is raised when this occurs (it results in a AttributeError since NoneType doesn't have
get
). It would be much better to explicitly handle the error and raise an exception notifying the developer of their error.