...
Create User
Code Block |
---|
POST http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/user {"email":"demouser@sagebase.org", "firstName":"demo", "lastName":"user", "displayName":"Demo User"} |
...
Update User
Code Block |
---|
PUT http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/user sessionToken:<sessionToken> {"email":"demouser@sagebase.org", "firstName":"demo", "lastName":"user", "displayName":"Demo User"} |
...
Send Change-Password Email
Code Block |
---|
POST http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/userPasswordEmail {"email":"demouser"} |
...
Request:
Code Block |
---|
POST http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/session {"email":"demouser@agebasedemouser@sagebase.org", "password":"demouser-pw"} |
...
Code Block |
---|
HTTP/1.1 400 Bad Request AuthenticationURL: http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/session Content-Type: application/json {"reason":"Unable to authenticate."} |
...
Request:
Code Block |
---|
PUT http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/session {"sessionToken":"AYcOhWIm9NdOC6BdzzzisQ00"} |
...
Request:
Code Block |
---|
DELETE http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/session {"sessionToken":"AYcOhWIm9NdOC6BdzzzisQ00"} |
...
Create User:
curl -k -H "Content-Type:application/json" -H "Accept:application/json" -d "{\"userId\":\"NEWuser\", \"email\":\"demouser@sagebase.org\", \"firstName\":\"demo\", \"lastName\":\"user\", \"displayName\":\"Demo User\"}" -X POST http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/user
Update User:
curl -k -H "Content-Type:application/json" -H "Accept:application/json" -d "{\"userId\":\"NEWuser\", \"email\":\"demouser@sagebase.org\", \"firstName\":\"NEWdemo\", \"lastName\":\"NEWuser\", \"displayName\":\"NEWDemo User\"}" -X PUT http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/user
Send Change Password Email:
curl -k -H "Content-Type:application/json" -H "Accept:application/json" -d "{\"userId\":\"demouser\"}" -X POST http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/userPasswordEmail
Login:
curl -k -H "Content-Type:application/json" -H "Accept:application/json" -d "{\"userId\":\"demouser\", \"password\":\"demouser-pw\"}" -X POST http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/session
...
curl -k -H "Content-Type:application/json" -H "Accept:application/json" -d "{\"sessionToken\":\"QYNoamrOKK0dBhjZOFfbAg00\"}" -X PUT http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/session
Logout:
curl -k -H "Content-Type:application/json" -H "Accept:application/json" -d "{\"sessionToken\":\"QYNoamrOKK0dBhjZOFfbAg00\"}" -X DELETE http://staging-auth-sagebase-org.elasticbeanstalk.com/auth/v1/session
...