Default login scopes to publicData

We need a refresh token to monitor character ownership but don't need any scopes explicitly. publicData provides no private information but grants a refresh token.

https://github.com/ccpgames/sso-issues/issues/17

Rumor has it this scope isn't going away with CREST.

adarnauth-esi will automatically create a new scope model when it encounters one it doesn't recognize.
This commit is contained in:
Adarnof 2018-02-22 13:27:47 -05:00
parent b6b14f6f1c
commit c18efaa33d
2 changed files with 5 additions and 5 deletions

View File

@ -187,7 +187,7 @@ LOGIN_REDIRECT_URL = 'authentication:dashboard' # destination after logging out
# - absolute urls eg 'http://example.com/dashboard' # - absolute urls eg 'http://example.com/dashboard'
# scopes required on new tokens when logging in. Cannot be blank. # scopes required on new tokens when logging in. Cannot be blank.
LOGIN_TOKEN_SCOPES = ['esi-characters.read_opportunities.v1'] LOGIN_TOKEN_SCOPES = ['publicData']
# number of days email verification links are valid for # number of days email verification links are valid for
ACCOUNT_ACTIVATION_DAYS = 1 ACCOUNT_ACTIVATION_DAYS = 1

View File

@ -35,10 +35,10 @@ DATABASES['default'] = {
} }
""" """
# Register an application at https://developers.eveonline.com # Register an application at https://developers.eveonline.com for Authentication
# and fill out these settings. Be sure to set the callback URL to # & API Access and fill out these settings. Be sure to set the callback URL
# https://example.com/sso/callback substituting your domain for example.com # to https://example.com/sso/callback substituting your domain for example.com
# Select all available scopes starting with esi- # Select publicData and all available scopes starting with esi-
ESI_SSO_CLIENT_ID = '' ESI_SSO_CLIENT_ID = ''
ESI_SSO_CLIENT_SECRET = '' ESI_SSO_CLIENT_SECRET = ''
ESI_SSO_CALLBACK_URL = '' ESI_SSO_CALLBACK_URL = ''