generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
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 #493 from ut-issl/feature/del_authentication_to_wings
Pre Release (v3.8.0-beta.4): 認証なしの最新の WINGS への対応
- Loading branch information
Showing
8 changed files
with
3 additions
and
59 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
7 changes: 0 additions & 7 deletions
7
Examples/2nd_obc_user/src/src_user/Test/authorization.json.temp
This file was deleted.
Oops, something went wrong.
16 changes: 1 addition & 15 deletions
16
Examples/2nd_obc_user/src/src_user/Test/utils/wings_utils.py
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,21 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import json | ||
import os | ||
import isslwings as wings | ||
|
||
|
||
def get_wings_operation(): | ||
authorization = dict( | ||
client_id=os.environ.get("WINGS_CLIENT_ID"), | ||
client_secret=os.environ.get("WINGS_CLIENT_SECRET"), | ||
grant_type=os.environ.get("WINGS_GRANT_TYPE"), | ||
username=os.environ.get("WINGS_USERNAME"), | ||
password=os.environ.get("WINGS_PASSWORD"), | ||
) | ||
|
||
# 環境変数があればそちらを優先 | ||
if None in authorization.values(): | ||
with open(os.path.dirname(__file__) + "/../authorization.json") as f: | ||
authorization = json.load(f) | ||
return wings.Operation(authentication_info=authorization) | ||
return wings.Operation() |
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
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
7 changes: 0 additions & 7 deletions
7
Examples/minimum_user/src/src_user/Test/authorization.json.temp
This file was deleted.
Oops, something went wrong.
16 changes: 1 addition & 15 deletions
16
Examples/minimum_user/src/src_user/Test/utils/wings_utils.py
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,21 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import json | ||
import os | ||
import isslwings as wings | ||
|
||
|
||
def get_wings_operation(): | ||
authorization = dict( | ||
client_id=os.environ.get("WINGS_CLIENT_ID"), | ||
client_secret=os.environ.get("WINGS_CLIENT_SECRET"), | ||
grant_type=os.environ.get("WINGS_GRANT_TYPE"), | ||
username=os.environ.get("WINGS_USERNAME"), | ||
password=os.environ.get("WINGS_PASSWORD"), | ||
) | ||
|
||
# 環境変数があればそちらを優先 | ||
if None in authorization.values(): | ||
with open(os.path.dirname(__file__) + "/../authorization.json") as f: | ||
authorization = json.load(f) | ||
return wings.Operation(authentication_info=authorization) | ||
return wings.Operation() |
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