File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,9 @@ def create_app(config=None):
99
99
if app .config ['UPLOAD_ENABLED' ]:
100
100
try :
101
101
from plaso import __version__ as plaso_version
102
+ app .config ['PLASO_VERSION' ] = plaso_version
102
103
except ImportError :
103
104
sys .stderr .write ('Upload is enabled, but Plaso is not installed.' )
104
- sys .exit ()
105
- app .config ['PLASO_VERSION' ] = plaso_version
106
105
107
106
# Setup the database.
108
107
configure_engine (app .config ['SQLALCHEMY_DATABASE_URI' ])
Original file line number Diff line number Diff line change @@ -122,7 +122,11 @@ def get_oauth2_authorize_url(hosted_domain=None):
122
122
"""
123
123
csrf_token = _generate_random_token ()
124
124
nonce = _generate_random_token ()
125
- redirect_uri = url_for ('user_views.google_openid_connect' , _external = True )
125
+ redirect_uri = url_for (
126
+ 'user_views.google_openid_connect' ,
127
+ _scheme = 'https' ,
128
+ _external = True
129
+ )
126
130
scopes = ('openid' , 'email' , 'profile' )
127
131
128
132
# Add the generated CSRF token to the client session for later validation.
@@ -160,7 +164,11 @@ def get_encoded_jwt_over_https(code):
160
164
"""
161
165
162
166
discovery_document = get_oauth2_discovery_document ()
163
- redirect_uri = url_for ('user_views.google_openid_connect' , _external = True )
167
+ redirect_uri = url_for (
168
+ 'user_views.google_openid_connect' ,
169
+ _scheme = 'https' ,
170
+ _external = True
171
+ )
164
172
post_data = {
165
173
'code' : code ,
166
174
'client_id' : current_app .config .get ('GOOGLE_OIDC_CLIENT_ID' ),
You can’t perform that action at this time.
0 commit comments