Skip to content

Commit

Permalink
Do device-generated JWT authentication first
Browse files Browse the repository at this point in the history
Negative results are faster, because we're just counting periods.
  • Loading branch information
juyrjola committed Mar 20, 2018
1 parent 5c78154 commit 45ca330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion identities/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create(self, validated_data):
class UserIdentityViewSet(ListModelMixin, CreateModelMixin, DestroyModelMixin, GenericViewSet):
queryset = UserIdentity.objects.all()
serializer_class = UserIdentitySerializer
authentication_classes = (OidcTokenAuthentication, DeviceGeneratedJWTAuthentication)
authentication_classes = (DeviceGeneratedJWTAuthentication, OidcTokenAuthentication)
permission_classes = (IsAuthenticated, ScopePermission)
required_scopes = ('identities',)

Expand Down

0 comments on commit 45ca330

Please sign in to comment.