forked from privacyidea/privacyidea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request privacyidea#4050 from privacyidea/license_containe…
…r_files add license header, remove old code
- Loading branch information
Showing
13 changed files
with
228 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# (c) NetKnights GmbH 2024, https://netknights.it | ||
# | ||
# This code is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
# as published by the Free Software Foundation; either | ||
# version 3 of the License, or any later version. | ||
# | ||
# This code is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public | ||
# License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
# | ||
import logging | ||
|
||
from flask import Blueprint, request, g | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# (c) NetKnights GmbH 2024, https://netknights.it | ||
# | ||
# This code is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
# as published by the Free Software Foundation; either | ||
# version 3 of the License, or any later version. | ||
# | ||
# This code is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public | ||
# License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
# | ||
import importlib | ||
import logging | ||
import os | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# (c) NetKnights GmbH 2024, https://netknights.it | ||
# | ||
# This code is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
# as published by the Free Software Foundation; either | ||
# version 3 of the License, or any later version. | ||
# | ||
# This code is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public | ||
# License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
# | ||
import logging | ||
from datetime import datetime, timezone | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# (c) NetKnights GmbH 2024, https://netknights.it | ||
# | ||
# This code is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
# as published by the Free Software Foundation; either | ||
# version 3 of the License, or any later version. | ||
# | ||
# This code is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public | ||
# License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
# | ||
import logging | ||
|
||
from privacyidea.lib.containerclass import TokenContainerClass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
# (c) NetKnights GmbH 2024, https://netknights.it | ||
# | ||
# This code is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
# as published by the Free Software Foundation; either | ||
# version 3 of the License, or any later version. | ||
# | ||
# This code is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public | ||
# License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
# SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
# | ||
import logging | ||
|
||
from privacyidea.lib.containerclass import TokenContainerClass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
# (c) NetKnights GmbH 2024, https://netknights.it | ||
# | ||
# This code is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
# as published by the Free Software Foundation; either | ||
# version 3 of the License, or any later version. | ||
# | ||
# This code is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public | ||
# License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
# | ||
__doc__ = """This is the event handler module for container actions. | ||
""" | ||
|
||
|
18 changes: 18 additions & 0 deletions
18
privacyidea/static/components/directives/views/directive.selectorcreatecontainer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
<!-- | ||
(c) NetKnights GmbH 2024, https://netknights.it | ||
This code is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
as published by the Free Software Foundation; either | ||
version 3 of the License, or any later version. | ||
This code is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
You should have received a copy of the GNU Affero General Public | ||
License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
|
||
<div class="form-group"> | ||
<div class="form-group"> | ||
<select class="form-control" | ||
|
21 changes: 21 additions & 0 deletions
21
privacyidea/static/components/token/controllers/containerControllers.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
/** | ||
* (c) NetKnights GmbH 2024, https://netknights.it | ||
* | ||
* This code is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
* as published by the Free Software Foundation; either | ||
* version 3 of the License, or any later version. | ||
* | ||
* This code is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public | ||
* License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
* SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
**/ | ||
|
||
myApp.controller("containerCreateController", ['$scope', '$http', '$q', 'ContainerFactory', '$stateParams', | ||
'AuthFactory', 'ConfigFactory', 'UserFactory', '$state', | ||
function createContainerController($scope, $http, $q, ContainerFactory, $stateParams, | ||
|
21 changes: 21 additions & 0 deletions
21
privacyidea/static/components/token/factories/container.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
/** | ||
* (c) NetKnights GmbH 2024, https://netknights.it | ||
* | ||
* This code is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
* as published by the Free Software Foundation; either | ||
* version 3 of the License, or any later version. | ||
* | ||
* This code is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public | ||
* License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
* SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
**/ | ||
|
||
myApp.factory("ContainerFactory", ['AuthFactory', '$http', 'containerUrl', '$q', '$state', '$rootScope', | ||
function (AuthFactory, $http, containerUrl, $q, $state, $rootScope) { | ||
let canceller = $q.defer(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
privacyidea/static/components/token/views/token.containercreate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
<!-- | ||
(c) NetKnights GmbH 2024, https://netknights.it | ||
This code is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
as published by the Free Software Foundation; either | ||
version 3 of the License, or any later version. | ||
This code is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
You should have received a copy of the GNU Affero General Public | ||
License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
|
||
<div class="well"> | ||
<form name="formCreateContainer" role="form" ng-hide="loggedInUser.role == 'user' && !checkRight('container_create')"> | ||
<!-- Container Type --> | ||
|
18 changes: 18 additions & 0 deletions
18
privacyidea/static/components/token/views/token.containerdetails.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
<!-- | ||
(c) NetKnights GmbH 2024, https://netknights.it | ||
This code is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
as published by the Free Software Foundation; either | ||
version 3 of the License, or any later version. | ||
This code is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
You should have received a copy of the GNU Affero General Public | ||
License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
|
||
<h3 name="Container Details"> | ||
<translate>Container details for {{ containerSerial }}</translate> | ||
</h3> | ||
|
18 changes: 18 additions & 0 deletions
18
privacyidea/static/components/token/views/token.containerlist.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
<!-- | ||
(c) NetKnights GmbH 2024, https://netknights.it | ||
This code is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
as published by the Free Software Foundation; either | ||
version 3 of the License, or any later version. | ||
This code is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
You should have received a copy of the GNU Affero General Public | ||
License along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
SPDX-FileCopyrightText: 2024 Nils Behlen <[email protected]> | ||
SPDX-FileCopyrightText: 2024 Jelina Unger <[email protected]> | ||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
|
||
<div uib-pagination ng-show="containerdata.count > containersPerPage" | ||
total-items="containerdata.count" ng-model="params.page" | ||
previous-text="{{ 'Previous'|translate }}" | ||
|