mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
allow blockchain_id to be null (for anonymous login)
This commit is contained in:
@@ -466,7 +466,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
|
||||
app_private_key = '0000000000000000000000000000000000000000000000000000000000000001'
|
||||
app_public_keys = {}
|
||||
requester_device_id = ''
|
||||
blockchain_id = ''
|
||||
blockchain_id = None
|
||||
|
||||
else:
|
||||
# current
|
||||
|
||||
@@ -716,8 +716,15 @@ APP_INFO_PROPERTIES = {
|
||||
'maximum': 1,
|
||||
},
|
||||
'blockchain_id': {
|
||||
'type': 'string',
|
||||
'pattern': OP_NAME_PATTERN,
|
||||
'anyOf': [
|
||||
{
|
||||
'type': 'string',
|
||||
'pattern': OP_NAME_PATTERN,
|
||||
},
|
||||
{
|
||||
'type': 'null',
|
||||
},
|
||||
],
|
||||
},
|
||||
'app_domain': {
|
||||
'anyOf': [
|
||||
@@ -833,6 +840,10 @@ APP_SESSION_SCHEMA = {
|
||||
'required': APP_SESSION_PROPERTIES.keys(),
|
||||
}
|
||||
|
||||
APP_SESSION_SCHEMA_ANONYMOUS = {
|
||||
'type': 'object',
|
||||
'properties': APP_SESSION_PROPERTIES
|
||||
|
||||
# authentication-request payload
|
||||
APP_SESSION_REQUEST_SCHEMA = {
|
||||
'type': 'object',
|
||||
|
||||
Reference in New Issue
Block a user