Skip to content

Commit 9534282

Browse files
Merge pull request #493 from ut-issl/feature/del_authentication_to_wings
Pre Release (v3.8.0-beta.4): 認証なしの最新の WINGS への対応
2 parents 9e04f4d + a1e0341 commit 9534282

File tree

8 files changed

+3
-59
lines changed

8 files changed

+3
-59
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ dkms.conf
6060
# for c2a user sample
6161
Examples/minimum_user/src/src_core
6262
Examples/minimum_user/build
63-
Examples/minimum_user/src/src_user/Test/authorization.json
6463
Examples/2nd_obc_user/src/src_core
6564
Examples/2nd_obc_user/build
66-
Examples/2nd_obc_user/src/src_user/Test/authorization.json
6765
*.pyc

Examples/2nd_obc_user/src/src_user/Test/authorization.json.temp

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
3-
import json
4-
import os
53
import isslwings as wings
64

75

86
def get_wings_operation():
9-
authorization = dict(
10-
client_id=os.environ.get("WINGS_CLIENT_ID"),
11-
client_secret=os.environ.get("WINGS_CLIENT_SECRET"),
12-
grant_type=os.environ.get("WINGS_GRANT_TYPE"),
13-
username=os.environ.get("WINGS_USERNAME"),
14-
password=os.environ.get("WINGS_PASSWORD"),
15-
)
16-
17-
# 環境変数があればそちらを優先
18-
if None in authorization.values():
19-
with open(os.path.dirname(__file__) + "/../authorization.json") as f:
20-
authorization = json.load(f)
21-
return wings.Operation(authentication_info=authorization)
7+
return wings.Operation()

Examples/2nd_obc_user/sync_with_minimum_user.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ call :sync_file ".\src\src_user\TlmCmd\common_tlm_cmd_packet.c" "..\minimum_user
2929
call :sync_file ".\src\src_user\TlmCmd\common_tlm_packet.c" "..\minimum_user\src\src_user\TlmCmd\common_tlm_packet.c"
3030

3131
call :sync_file ".\src\src_user\Test\utils\wings_utils.py" "..\minimum_user\src\src_user\Test\utils\wings_utils.py"
32-
call :sync_file ".\src\src_user\Test\authorization.json.temp" "..\minimum_user\src\src_user\Test\authorization.json.temp"
3332
call :sync_file ".\src\src_user\Test\pytest.ini" "..\minimum_user\src\src_user\Test\pytest.ini"
3433

3534

Examples/minimum_user/src/src_user/Test/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,3 @@ or
4848
cd ./test/src_user/Applications/UserDefined/
4949
pytest -m real -v test_tlm_mem_dump.py
5050
```
51-
52-
## 認証情報について
53-
wings と通信するにあたりに対して認証情報を渡す必要がある. `authorization.json.temp` と同じ key を持つ正しい `authorization.json` を誰かからもらうか,又はそれぞれの key に対応する環境変数を埋めること. 対応を下表に示す.
54-
55-
| `authorization.json` の key | 環境変数 |
56-
| :-------------------------- | :------------------ |
57-
| client_id | WINGS_CLIENT_ID |
58-
| client_secret | WINGS_CLIENT_SECRET |
59-
| grant_type | WINGS_GRANT_TYPE |
60-
| username | WINGS_USERNAME |
61-
| password | WINGS_PASSWORD |

Examples/minimum_user/src/src_user/Test/authorization.json.temp

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
3-
import json
4-
import os
53
import isslwings as wings
64

75

86
def get_wings_operation():
9-
authorization = dict(
10-
client_id=os.environ.get("WINGS_CLIENT_ID"),
11-
client_secret=os.environ.get("WINGS_CLIENT_SECRET"),
12-
grant_type=os.environ.get("WINGS_GRANT_TYPE"),
13-
username=os.environ.get("WINGS_USERNAME"),
14-
password=os.environ.get("WINGS_PASSWORD"),
15-
)
16-
17-
# 環境変数があればそちらを優先
18-
if None in authorization.values():
19-
with open(os.path.dirname(__file__) + "/../authorization.json") as f:
20-
authorization = json.load(f)
21-
return wings.Operation(authentication_info=authorization)
7+
return wings.Operation()

c2a_core_main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ void C2A_core_main(void);
1010
#define C2A_CORE_VER_MAJOR (3)
1111
#define C2A_CORE_VER_MINOR (8)
1212
#define C2A_CORE_VER_PATCH (0)
13-
#define C2A_CORE_VER_PRE ("beta.3")
13+
#define C2A_CORE_VER_PRE ("beta.4")
1414

1515
#endif

0 commit comments

Comments
 (0)