Skip to content

Commit

Permalink
Merge pull request #18 from StephanieZ/newuserexamplefix
Browse files Browse the repository at this point in the history
Fixes a bug in the new user example file
  • Loading branch information
StephanieZ committed Aug 24, 2023
2 parents 7f83ec2 + c486077 commit 32a253d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "pysafeguard"
description = "One Identity Safeguard Python Package"
version = "0.0.30"
version = "7.4.0"
readme = "README.md"
keywords = ["safeguard","oneidentity"]
repository = "https://github.com/OneIdentity/PySafeguard"
authors = [
"Tania Engel <[email protected]>",
]
maintainers = [
"Rich Gagliano <[email protected]>",
"Edward Mun <[email protected]>",
"Stephanie Zinn <[email protected]>"
]
classifiers = [
"Programming Language :: Python :: 3",
Expand Down
4 changes: 2 additions & 2 deletions samples/NewUserExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'PrimaryAuthenticationProvider': { 'Id': -1 },
'Name': 'MyNewUser'
}
password = 'MyNewUser123'
newuserpassword = 'MyNewUser123'

print('Connecting to Safeguard')
connection = PySafeguardConnection(hostName, caFile)
Expand All @@ -32,7 +32,7 @@
userId = result.get('Id')

print('Creating password for user')
connection.invoke(HttpMethods.PUT, Services.CORE, f'Users/{userId}/Password', body=password)
connection.invoke(HttpMethods.PUT, Services.CORE, f'Users/{userId}/Password', body=newuserpassword)

print('Getting newly created user')
result = connection.invoke(HttpMethods.GET, Services.CORE, f'Users/{userId}')
Expand Down

0 comments on commit 32a253d

Please sign in to comment.