USER_ALREADY_EXISTS=Exception('The user does already exist. This usually implies that the IdP changed the sub. Only possible fix: delete the old user')
TYPE_CHOICE_DOWNSTREAM='apiclient'
TYPE_CHOICE_USER='oidcuser'
TYPE_CHOICE_ADMIN='admin'
TYPE_CHOICE_UPSTREAM='upstream'
TYPE_CHOICES=(
('apiclient','Downstream Client'),# clients which connect to us via pubsub
('oidcuser','Webpage User'),# normal users which logged in using the webpage
('admin','Admin'),# admins of the django admin
('upstream','Upstream Client'),# E.g. an idP that provides us with fresh userinfos or access tokens
(TYPE_CHOICE_DOWNSTREAM,'Downstream Client'),# clients which connect to us via pubsub
(TYPE_CHOICE_USER,'Webpage User'),# normal users which logged in using the webpage
(TYPE_CHOICE_ADMIN,'Admin'),# admins of the django admin
(TYPE_CHOICE_UPSTREAM,'Upstream Client'),# E.g. an idP that provides us with fresh userinfos or access tokens