...
Code Block |
---|
GET https://auth-staging.sagebase.org/auth/v1/secretKey
{"email":"demouser@sagebase.org"}
|
Successful Response:
Code Block |
---|
HTTP/1.1 200 {"secretKey":"0Ocy/cW/3WIdZg3Up9dguO4Kh5smBKpN7iWXAvVQqekGD3gT4nc7PWwlfOhcL+KW6W4PjXtgPQNhiP7yrwjfwQ=="} |
Note: Session token is required in request header. The returned key is that of the user authenticated by the session token.
Invalidate Secret Key
Code Block |
---|
DELETE https://auth-staging.sagebase.org/auth/v1/secretKey
{"email":"demouser@sagebase.org"}
|
Successful Response:
Code Block |
---|
HTTP/1.1 204 No Content |
Note: Session token is required in request header. The key which is invalidated is that of the user authenticated by the session token.
Initiate Session (Login)
...