#NEWLINE# def init_app( self , app ) : #NEWLINE# #INDENT# '\n        Do setup that requires a Flask app.\n        ' #NEWLINE# app . route ( '/oidc_callback' ) ( self . oidc_callback ) #NEWLINE# app . after_request ( self . after_request ) #NEWLINE# self . flow = flow_from_clientsecrets ( app . config [ 'OIDC_CLIENT_SECRETS' ] , scope = [ 'openid' , 'email' ] ) #NEWLINE# assert isinstance ( self . flow , OAuth2WebServerFlow ) #NEWLINE# self . cookie_serializer = TimedJSONWebSignatureSerializer ( app . config [ 'SECRET_KEY' ] ) #NEWLINE# try : #NEWLINE# #INDENT# self . google_apps_domain = app . config [ 'OIDC_GOOGLE_APPS_DOMAIN' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . id_token_cookie_name = app . config [ 'OIDC_ID_TOKEN_COOKIE_NAME' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . id_token_cookie_ttl = app . config [ 'OIDC_ID_TOKEN_COOKIE_TTL' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . id_token_cookie_secure = app . config [ 'OIDC_ID_TOKEN_COOKIE_SECURE' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . credentials_store = app . config [ 'OIDC_CREDENTIALS_STORE' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass