diff --git a/pv/oidc_provider_settings.py b/pv/oidc_provider_settings.py index 481a907276327a9f67253b2853233d93898b28c2..e1b96998b883d69f3925736daa66325963297471 100644 --- a/pv/oidc_provider_settings.py +++ b/pv/oidc_provider_settings.py @@ -4,15 +4,26 @@ from oidc_provider.lib.claims import ScopeClaims class AuraScopeClaims(ScopeClaims): - info_aura = ( - _(u'aura'), - _(u'AURA specific auth info (username, shows, etc.).'), + info_username = ( + _(u'username'), + _(u'Your username.'), ) - def scope_aura(self): + def scope_username(self): + dic = { + 'username': self.user.username + } + + return dic + + info_aura_shows = ( + _(u'AURA Shows'), + _(u'AURA shows you have access to.'), + ) + + def scope_aura_shows(self): show_slugs = list(self.user.shows.all().values_list('slug', flat=True)) dic = { - 'username': self.user.username, 'shows': show_slugs }