How to sent windows key for google cloud platform as an JSON?
up vote
0
down vote
favorite
I need to attach the encoded key to the modulus in for windows set metadata rest call to get a user validated for login.
So the format which google expects is:
{
"fingerprint": string,
"items": [
{
"key": string,
"value": string
}
],
"kind": string
}
So when you are sending data to google they want in this format.
{
"fingerprint": "sfasdfasdfFSN7AuU=",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
]
}
It will also accept if I send the same JSON in this below format but will not perform any action in there:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value":
{
"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019"04-14T01:37:19Z"
}
}
]
}
Does any one knows a solution for this or faced this issue?
Google Doc link
javascript json google-cloud-platform
add a comment |
up vote
0
down vote
favorite
I need to attach the encoded key to the modulus in for windows set metadata rest call to get a user validated for login.
So the format which google expects is:
{
"fingerprint": string,
"items": [
{
"key": string,
"value": string
}
],
"kind": string
}
So when you are sending data to google they want in this format.
{
"fingerprint": "sfasdfasdfFSN7AuU=",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
]
}
It will also accept if I send the same JSON in this below format but will not perform any action in there:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value":
{
"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019"04-14T01:37:19Z"
}
}
]
}
Does any one knows a solution for this or faced this issue?
Google Doc link
javascript json google-cloud-platform
Please edit your question and remove the pictures and replace with the actual text. Your style prevents people searching for questions like yours from finding any information. Also in time these picture links may become invalid redering your question useless.
– John Hanley
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to attach the encoded key to the modulus in for windows set metadata rest call to get a user validated for login.
So the format which google expects is:
{
"fingerprint": string,
"items": [
{
"key": string,
"value": string
}
],
"kind": string
}
So when you are sending data to google they want in this format.
{
"fingerprint": "sfasdfasdfFSN7AuU=",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
]
}
It will also accept if I send the same JSON in this below format but will not perform any action in there:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value":
{
"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019"04-14T01:37:19Z"
}
}
]
}
Does any one knows a solution for this or faced this issue?
Google Doc link
javascript json google-cloud-platform
I need to attach the encoded key to the modulus in for windows set metadata rest call to get a user validated for login.
So the format which google expects is:
{
"fingerprint": string,
"items": [
{
"key": string,
"value": string
}
],
"kind": string
}
So when you are sending data to google they want in this format.
{
"fingerprint": "sfasdfasdfFSN7AuU=",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
]
}
It will also accept if I send the same JSON in this below format but will not perform any action in there:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value":
{
"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019"04-14T01:37:19Z"
}
}
]
}
Does any one knows a solution for this or faced this issue?
Google Doc link
javascript json google-cloud-platform
javascript json google-cloud-platform
edited 2 days ago
Alan Dávalos
1,259516
1,259516
asked 2 days ago
Mag
1
1
Please edit your question and remove the pictures and replace with the actual text. Your style prevents people searching for questions like yours from finding any information. Also in time these picture links may become invalid redering your question useless.
– John Hanley
2 days ago
add a comment |
Please edit your question and remove the pictures and replace with the actual text. Your style prevents people searching for questions like yours from finding any information. Also in time these picture links may become invalid redering your question useless.
– John Hanley
2 days ago
Please edit your question and remove the pictures and replace with the actual text. Your style prevents people searching for questions like yours from finding any information. Also in time these picture links may become invalid redering your question useless.
– John Hanley
2 days ago
Please edit your question and remove the pictures and replace with the actual text. Your style prevents people searching for questions like yours from finding any information. Also in time these picture links may become invalid redering your question useless.
– John Hanley
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
In the format definition you're providing, it mentions that the value
property of every item in the items
array should be a string, and if you look closely, the "correct" example you provide sets value
as a string`
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
However, in your second example, you're setting value
as an object, so it's not in the expected format, the correct version should look something like this:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019-04-14T01:37:19Z"
}"
}
]
}
That should make it at least accept your request, you might need to fill the email with a correct one and check out whether if it's "expireOn" or "expiresOn" as your examples use both
Thanks for the response, if you put those extra "" in the code the whole otbjec gets messed up. The issue is when you start putting those "" it will require / inside all value pair to make it correct, which is basically makes it as a wrong json. And yes it's "expireOn" thanks for that.
– Mag
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
In the format definition you're providing, it mentions that the value
property of every item in the items
array should be a string, and if you look closely, the "correct" example you provide sets value
as a string`
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
However, in your second example, you're setting value
as an object, so it's not in the expected format, the correct version should look something like this:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019-04-14T01:37:19Z"
}"
}
]
}
That should make it at least accept your request, you might need to fill the email with a correct one and check out whether if it's "expireOn" or "expiresOn" as your examples use both
Thanks for the response, if you put those extra "" in the code the whole otbjec gets messed up. The issue is when you start putting those "" it will require / inside all value pair to make it correct, which is basically makes it as a wrong json. And yes it's "expireOn" thanks for that.
– Mag
yesterday
add a comment |
up vote
0
down vote
In the format definition you're providing, it mentions that the value
property of every item in the items
array should be a string, and if you look closely, the "correct" example you provide sets value
as a string`
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
However, in your second example, you're setting value
as an object, so it's not in the expected format, the correct version should look something like this:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019-04-14T01:37:19Z"
}"
}
]
}
That should make it at least accept your request, you might need to fill the email with a correct one and check out whether if it's "expireOn" or "expiresOn" as your examples use both
Thanks for the response, if you put those extra "" in the code the whole otbjec gets messed up. The issue is when you start putting those "" it will require / inside all value pair to make it correct, which is basically makes it as a wrong json. And yes it's "expireOn" thanks for that.
– Mag
yesterday
add a comment |
up vote
0
down vote
up vote
0
down vote
In the format definition you're providing, it mentions that the value
property of every item in the items
array should be a string, and if you look closely, the "correct" example you provide sets value
as a string`
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
However, in your second example, you're setting value
as an object, so it's not in the expected format, the correct version should look something like this:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019-04-14T01:37:19Z"
}"
}
]
}
That should make it at least accept your request, you might need to fill the email with a correct one and check out whether if it's "expireOn" or "expiresOn" as your examples use both
In the format definition you're providing, it mentions that the value
property of every item in the items
array should be a string, and if you look closely, the "correct" example you provide sets value
as a string`
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "somekey",
"exponent": "AQAB",
"email": "samleemail",
"expireOn": "2019-04-14T01:37:19Z"
}"
}
However, in your second example, you're setting value
as an object, so it's not in the expected format, the correct version should look something like this:
{
"fingerprint": "asfasd",
"items": [
{
"key": "windows-keys",
"value": "{"userName": "user",
"modulus": "IEFBQUFCM056YUMxeWM",
"exponent": "AQAB",
"email": "somemailt",
"expiresOn": "2019-04-14T01:37:19Z"
}"
}
]
}
That should make it at least accept your request, you might need to fill the email with a correct one and check out whether if it's "expireOn" or "expiresOn" as your examples use both
answered 2 days ago
Alan Dávalos
1,259516
1,259516
Thanks for the response, if you put those extra "" in the code the whole otbjec gets messed up. The issue is when you start putting those "" it will require / inside all value pair to make it correct, which is basically makes it as a wrong json. And yes it's "expireOn" thanks for that.
– Mag
yesterday
add a comment |
Thanks for the response, if you put those extra "" in the code the whole otbjec gets messed up. The issue is when you start putting those "" it will require / inside all value pair to make it correct, which is basically makes it as a wrong json. And yes it's "expireOn" thanks for that.
– Mag
yesterday
Thanks for the response, if you put those extra "" in the code the whole otbjec gets messed up. The issue is when you start putting those "" it will require / inside all value pair to make it correct, which is basically makes it as a wrong json. And yes it's "expireOn" thanks for that.
– Mag
yesterday
Thanks for the response, if you put those extra "" in the code the whole otbjec gets messed up. The issue is when you start putting those "" it will require / inside all value pair to make it correct, which is basically makes it as a wrong json. And yes it's "expireOn" thanks for that.
– Mag
yesterday
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53343143%2fhow-to-sent-windows-key-for-google-cloud-platform-as-an-json%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please edit your question and remove the pictures and replace with the actual text. Your style prevents people searching for questions like yours from finding any information. Also in time these picture links may become invalid redering your question useless.
– John Hanley
2 days ago