-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api-test. Clean up creating test users via ocs endpoint #6998
Comments
duplicate of #6729 ? |
In addition to what's written here, we have some open issues related to |
@saw-jan can you add more if there are any left to do regarding this refactoring task? |
Newbie here, moved from OCS to OCIS and trying to create a user via api, using Docker with ocis 4.0.0+f5f11e0bd and web client version 8.0.0-alpha.4. Used to do it with OCS like:
Do I need to do any setup before running the docker ocis image? What endpoint to call? Thanks |
oCIS 4.0.0 uses graph API for user/group provisioning. The request looks like this: curl -XPOST "https://localhost:9200/graph/v1.0/users" \
-d'{"displayName":"Alice Hansen","mail":"[email protected]","onPremisesSamAccountName":"alice","passwordProfile":{"password":"1234"}}' \
-u admin:admin |
Tried that on localhost and behind a proxy with valid cert, got 401 for both, do I need an access token and if so how do I obtain one? Or perhaps disable it and allow basic auth?
EDIT: Got it to work by PROXY_ENABLE_BASIC_AUTH to true |
Yeah, by default ocis doesn't allow basic auth. we need to enable basic-auth using |
for our apiTest we have 3 option to create user/group using:
TEST_WITH_GRAPH=true
)ocis doesn't create users/groups using the
ocs
endpoint after we switch to graph.mobile client doesn't support admin options
we don't have any tests for creating or deleting users in ocis using
ocs
except https://github.com/owncloud/ocis/tree/master/tests/acceptance/features/coreApiAuthOcs@SwikritiT and me suggest to:
ocs
steps (CRUD users/group) from Provisioning.php Api-test. Clean up creating test users via ocs endpoint #6998 (comment)- we are deleting all the
ocs
steps (CRUD users/group) because CRUD operation related to users/group throughocs
are not possible anymore. Please refer to following PR's/issues for further information : [docs-only] beta-testplan: Adjust curl examples to use graph instead of accounts/ocs #3820, [full-ci] Remove glauth and accounts services #3685, Use GraphAPI for creating/deleting users and groups in acceptance test #3167, [tests-only][full-ci] run core acceptance tests with the Graph API #3404delete envwill be done in delete env TEST_WITH_GRAPH=true and use graph api by default #8276 @amrita-shresthaTEST_WITH_GRAPH=true
and use graph api by defaultThe text was updated successfully, but these errors were encountered: