Skip to content

Commit

Permalink
fix: add requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Oct 25, 2023
1 parent af43431 commit fb9d962
Show file tree
Hide file tree
Showing 24 changed files with 29 additions and 2 deletions.
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
aiohttp~=3.8.6
cryptography~=41.0.5
PyJWT~=2.8.0
requests~=2.31.0
setuptools~=68.2.0
yarl~=1.9.2
1 change: 1 addition & 0 deletions src/casdoor/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/enforcer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Dict, List, Optional

import jwt
Expand Down
1 change: 1 addition & 0 deletions src/casdoor/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/permisssion.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from datetime import datetime
from typing import Dict, List
Expand Down
1 change: 1 addition & 0 deletions src/casdoor/syncer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
1 change: 1 addition & 0 deletions src/casdoor/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
from typing import Dict, List

Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_async_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TestOAuth(IsolatedAsyncioTestCase):
@staticmethod
def get_sdk():
sdk = AsyncCasdoorSDK(
endpoint="http://test.casbin.com:8000",
endpoint="https://demo.casdoor.com",
client_id="3267f876b11e7d1cb217",
client_secret="3f0d1f06d28d65309c8f38b505cb9dcfa487754d",
certificate="CasdoorSecret",
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class TestOAuth(TestCase):
@staticmethod
def get_sdk():
sdk = CasdoorSDK(
endpoint="http://test.casbin.com:8000",
endpoint="https://demo.casdoor.com",
client_id="3267f876b11e7d1cb217",
client_secret="3f0d1f06d28d65309c8f38b505cb9dcfa487754d",
certificate="CasdoorSecret",
Expand Down

0 comments on commit fb9d962

Please sign in to comment.