|
@@ -15,7 +15,8 @@
|
|
|
# See the License for the specific language governing permissions and
|
|
# See the License for the specific language governing permissions and
|
|
|
# limitations under the License.
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
-from djangosaml2.views import login, echo_attributes, metadata, assertion_consumer_service
|
|
|
|
|
|
|
+from djangosaml2.views import login, echo_attributes, metadata,\
|
|
|
|
|
+ assertion_consumer_service, logout_service
|
|
|
|
|
|
|
|
import libsaml.conf
|
|
import libsaml.conf
|
|
|
|
|
|
|
@@ -28,6 +29,7 @@ def acs(request, config_loader_path=None, attribute_mapping=None, create_unknown
|
|
|
return assertion_consumer_service(request, config_loader_path, attribute_mapping, create_unknown_user, username_source)
|
|
return assertion_consumer_service(request, config_loader_path, attribute_mapping, create_unknown_user, username_source)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+setattr(logout_service, 'login_notrequired', True)
|
|
|
setattr(login, 'login_notrequired', True)
|
|
setattr(login, 'login_notrequired', True)
|
|
|
setattr(echo_attributes, 'login_notrequired', True)
|
|
setattr(echo_attributes, 'login_notrequired', True)
|
|
|
setattr(acs, 'login_notrequired', True)
|
|
setattr(acs, 'login_notrequired', True)
|