406f69080b
This reverts commit 7ed3ceb960
.
29 lines
638 B
Python
29 lines
638 B
Python
"""SAMLSource API Views"""
|
|
from rest_framework.serializers import ModelSerializer
|
|
from rest_framework.viewsets import ModelViewSet
|
|
|
|
from passbook.sources.saml.models import SAMLSource
|
|
|
|
|
|
class SAMLSourceSerializer(ModelSerializer):
|
|
"""SAMLSource Serializer"""
|
|
|
|
class Meta:
|
|
|
|
model = SAMLSource
|
|
fields = [
|
|
"pk",
|
|
"issuer",
|
|
"idp_url",
|
|
"idp_logout_url",
|
|
"auto_logout",
|
|
"signing_kp",
|
|
]
|
|
|
|
|
|
class SAMLSourceViewSet(ModelViewSet):
|
|
"""SAMLSource Viewset"""
|
|
|
|
queryset = SAMLSource.objects.all()
|
|
serializer_class = SAMLSourceSerializer
|