Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: OpenIDConnectFrontend: check for empty db_uri (#420)
With IdentityPython/pyop#44 merged, OpenIDConnectFrontend init fails when `db_uri` is not set, as `StorageBase.type` now throws a `ValueError` for db_uri values that do not match one of the recognised storage types (including when `db_uri` is `None`). Fix this by guarding the `StorageBase.type` with a pythonic test whether `db_uri` was provided. Same test already guards `StorageBase.from_uri`, add it also to the `StorageBase.type` call made to determine `self.stateless`.
- Loading branch information