Browse Source

Added issuer config

master
Sergey Zhuplev 8 months ago
parent
commit
113f9ddcbe
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      README.md
  2. +1
    -0
      sso_client/authentication.py

+ 1
- 0
README.md View File

@ -28,6 +28,7 @@ SSO_HOST = os.getenv('SSO_HOST', 'http://0.0.0.0:8080')
SSO_ACCESS_KEY = os.getenv('SSO_ACCESS_KEY', 'test_access_key')
SSO_ACCESS_TOKEN = os.getenv('SSO_ACCESS_TOKEN', 'test_access_token')
SSO_STORAGE = <JWTStorage instance>
SSO_ISSUER = 'some_service_name'
```
Соответственно сервис должен быть зарегистрирован с данными учетными данными в SSO сервисе.


+ 1
- 0
sso_client/authentication.py View File

@ -25,6 +25,7 @@ class JWTAuthentication(TokenAuthentication):
'access_token': 'SSO_ACCESS_TOKEN',
'access_key': 'SSO_ACCESS_KEY',
'storage': 'SSO_STORAGE',
'issuer': 'SSO_ISSUER'
}
def __init__(self, *args, **kwargs):


Loading…
Cancel
Save