@@ -149,8 +149,9 @@ def _revoke_slack() -> werkzeug.Response:
149149@_AUTH .oidc_auth ('default' )
150150def _auth_github () -> werkzeug .Response :
151151 # Redirect to github for authorisation
152- return redirect (_GITHUB_AUTH_URI %
153- (APP .config ['GITHUB_CLIENT_ID' ], APP .config ['STATE' ]))
152+ return redirect (
153+ _GITHUB_AUTH_URI %
154+ (APP .config ['GITHUB_OAUTH_CLIENT_ID' ], APP .config ['STATE' ]))
154155
155156
156157@APP .route ('/github/return' , methods = ['GET' ])
@@ -164,8 +165,8 @@ def _github_landing() -> tuple[str, int]:
164165 # Get token from github
165166 resp = requests .post (
166167 _GITHUB_TOKEN_URI %
167- (APP .config ['GITHUB_CLIENT_ID' ], APP . config [ 'GITHUB_SECRET ' ],
168- request .args .get ('code' )),
168+ (APP .config ['GITHUB_OAUTH_CLIENT_ID ' ],
169+ APP . config [ 'GITHUB_OAUTH_CLIENT_SECRET' ], request .args .get ('code' )),
169170 headers = {'Accept' : 'application/json' },
170171 timeout = APP .config ['REQUEST_TIMEOUT' ])
171172 try :
@@ -209,7 +210,7 @@ def _get_github_jwt() -> str:
209210 payload = {
210211 'iat' : int (time .time ()),
211212 'exp' : int (time .time () + 600 ),
212- 'iss' : APP .config ['GITHUB_APP_ID ' ],
213+ 'iss' : APP .config ['GITHUB_APP_CLIENT_ID ' ],
213214 }
214215
215216 encoded_jwt = jwt .encode (payload , signing_key , algorithm = 'RS256' )
0 commit comments