@@ -150,7 +150,7 @@ def _revoke_slack() -> werkzeug.Response:
150150def _auth_github () -> werkzeug .Response :
151151 # Redirect to github for authorisation
152152 return redirect (_GITHUB_AUTH_URI %
153- (APP .config ['GITHUB_CLIENT_ID ' ], APP .config ['STATE' ]))
153+ (APP .config ['GITHUB_OAUTH_CLIENT_ID ' ], APP .config ['STATE' ]))
154154
155155
156156@APP .route ('/github/return' , methods = ['GET' ])
@@ -164,7 +164,7 @@ def _github_landing() -> tuple[str, int]:
164164 # Get token from github
165165 resp = requests .post (
166166 _GITHUB_TOKEN_URI %
167- (APP .config ['GITHUB_CLIENT_ID ' ], APP .config ['GITHUB_SECRET ' ],
167+ (APP .config ['GITHUB_OAUTH_CLIENT_ID ' ], APP .config ['GITHUB_OAUTH_CLIENT_SECRET ' ],
168168 request .args .get ('code' )),
169169 headers = {'Accept' : 'application/json' },
170170 timeout = APP .config ['REQUEST_TIMEOUT' ])
@@ -209,7 +209,7 @@ def _get_github_jwt() -> str:
209209 payload = {
210210 'iat' : int (time .time ()),
211211 'exp' : int (time .time () + 600 ),
212- 'iss' : APP .config ['GITHUB_APP_ID ' ],
212+ 'iss' : APP .config ['GITHUB_APP_CLIENT_ID ' ],
213213 }
214214
215215 encoded_jwt = jwt .encode (payload , signing_key , algorithm = 'RS256' )
0 commit comments