-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The main addition in this commit is the implementation and utilization of `PosixIdentityMapper`, which wraps the Globus Identity Mapper tool. Basic use looks like: ```python im = PosixIdentityMapper("path/some/conf.json", "some uuid or other id") local_user_id = im.map_identity([{"some": "list"}, {"of": "globus ids"}]) ``` The `im` object will watch the configuration file for changes (stat every few seconds), and atomically update the configuration accordingly. The previous route of a simple JSON file (dictionary mapping) is no more. Also: - update the default configuration to point to an example configuration document - disallow specification of an engine for a multi-user config (where it doesn't make any sense) [sc-26671]
- Loading branch information
1 parent
60ffcc6
commit defa6ab
Showing
14 changed files
with
782 additions
and
104 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
18 changes: 18 additions & 0 deletions
18
...ute_endpoint/globus_compute_endpoint/endpoint/config/example_identity_mapping_config.json
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"comment": "For more examples, see: https://docs.globus.org/globus-connect-server/v5.4/identity-mapping-guide/", | ||
"DATA_TYPE": "external_identity_mapping#1.0.0", | ||
"command": ["/bin/false", "--some", "flag", "-a", "-b", "-c"] | ||
}, | ||
{ | ||
"comment": "For more examples, see: https://docs.globus.org/globus-connect-server/v5.4/identity-mapping-guide/", | ||
"DATA_TYPE": "expression_identity_mapping#1.0.0", | ||
"mappings": [ | ||
{ | ||
"source": "{username}", | ||
"match": "(.*)@example.com", | ||
"output": "{0}" | ||
} | ||
] | ||
} | ||
] |
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
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
Oops, something went wrong.