def init_app(): app = Flask(__name__) app.config.from_envvar("OIDCFED_RELYING_PARTY_CONFIG") template_loader = jinja2.FileSystemLoader(["templates", "../templates"]) app.jinja_loader = template_loader app.rp = init_oidc_fed_rp(app.config) return app