Skip to content

Commit ee3b12e

Browse files
author
ebagfey
committed
testing
1 parent 08ce2d8 commit ee3b12e

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

docs/web/authentication.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -413,24 +413,24 @@ CodeChecker also supports OAuth-based authentication. The `authentication.method
413413
Key: `signum` – uses the user's Signum (a company-specific unique identifier).
414414
~~~{.json}
415415
"method_oauth": {
416-
"enabled": false,
417-
"providers": {
418-
"example_provider": {
419-
"enabled": false,
420-
"client_id": "client id",
421-
"client_secret": "client secret",
422-
"authorization_url": "https://accounts.google.com/o/oauth2/auth",
423-
"callback_url": "http://localhost:8080/login/OAuthLogin/provider",
424-
"token_url": "https://accounts.google.com/o/oauth2/token",
425-
"user_info_url": "https://www.googleapis.com/oauth2/v1/userinfo",
426-
"user_emails_url": "https://api.github.com/user/emails",
427-
"scope": "openid email profile",
428-
"user_info_mapping": {
429-
"username": "email"
430-
}
416+
"enabled": false,
417+
"providers": {
418+
"example_provider": {
419+
"enabled": false,
420+
"client_id": "client id",
421+
"client_secret": "client secret",
422+
"authorization_url": "https://accounts.google.com/o/oauth2/auth",
423+
"callback_url": "http://localhost:8080/login/OAuthLogin/provider",
424+
"token_url": "https://accounts.google.com/o/oauth2/token",
425+
"user_info_url": "https://www.googleapis.com/oauth2/v1/userinfo",
426+
"user_emails_url": "https://api.github.com/user/emails",
427+
"scope": "openid email profile",
428+
"user_info_mapping": {
429+
"username": "email"
431430
}
432431
}
433432
}
433+
}
434434
~~~
435435

436436
#### OAuth Details per each provider <a name ="oauth-details-per-each-provider"></a>

web/server/codechecker_server/api/authentication.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,7 @@ def performLogin(self, auth_method, auth_string):
369369
f" for provider: {provider}")
370370

371371
try:
372-
user_info_response = oauth2_session.get(user_info_url)
373-
user_info_response.raise_for_status()
374-
user_info = user_info_response.json()
372+
user_info = oauth2_session.get(user_info_url).json()
375373

376374
# request group memberships for Microsoft
377375
groups = []

0 commit comments

Comments
 (0)