mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 14:30:17 +02:00
FAT uses ESI tokens to get character location/ship - closes #564 Pull corp memebrship data from ESI Additional permissions for non-api viewing. - migration to convert permissions from old users. Standardize EVE datasource responses. - allow different sources for EVE data types. Allow empty values for character alliance id and name Allow multiple corps and alliances to be considered 'members'
24 lines
581 B
Python
24 lines
581 B
Python
from __future__ import unicode_literals
|
|
from authentication.states import NONE_STATE, BLUE_STATE, MEMBER_STATE
|
|
from authentication.managers import UserState
|
|
from django.conf import settings
|
|
|
|
|
|
def membership_state(request):
|
|
return UserState.get_membership_state(request)
|
|
|
|
|
|
def states(request):
|
|
return {
|
|
'BLUE_STATE': BLUE_STATE,
|
|
'MEMBER_STATE': MEMBER_STATE,
|
|
'NONE_STATE': NONE_STATE,
|
|
'MEMBER_BLUE_STATE': [MEMBER_STATE, BLUE_STATE],
|
|
}
|
|
|
|
|
|
def sso(request):
|
|
return {
|
|
'EVE_SSO_CALLBACK_URL': settings.ESI_SSO_CALLBACK_URL,
|
|
}
|